Skip to content

Instantly share code, notes, and snippets.

@isao
Created August 2, 2012 23:01
Show Gist options
  • Save isao/3241694 to your computer and use it in GitHub Desktop.
Save isao/3241694 to your computer and use it in GitHub Desktop.
run all tests from cwd, show only results
#!/bin/sh -e
# usage: $0 [optional arrow args]
# run all arrow tests from cwd and just display the results
err() {
echo "error: $2"; exit $1
}
which pgrep arrow >/dev/null || err 1 "missing executable(s)"
pgrep -f arrow_server >/dev/null || err 3 'arrow_server not running'
pgrep -f selenium >/dev/null || err 5 'selenium not running'
opts="--driver=selenium --reuseSession=true --logLevel=WARN $@"
find . -name '*descriptor.json' | xargs -t arrow $opts | egrep '^ |..32m[0-9]+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment