Skip to content

Instantly share code, notes, and snippets.

@ekoontz
Created October 31, 2011 23:33
Show Gist options
  • Save ekoontz/1329407 to your computer and use it in GitHub Desktop.
Save ekoontz/1329407 to your computer and use it in GitHub Desktop.
repeat a given Zookeeper test
#!/bin/sh
# TODO: fold into ant (current) or maven (future).
# example usage (run from top-level zookeeper directory) :
#
# src/repeat.sh ZooKeeperTest
test_output=yes
testcase=$1
i=0
ant test-init
while [ "$?" -eq "0" ] ; do
i=`expr $i + 1`
ant -Dtest.output="$test_output" -Dtestcase="$testcase" junit.run
done
echo "test:' $testcase ' failed on iteration $i."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment