Skip to content

Instantly share code, notes, and snippets.

@ekoontz
Created October 14, 2011 19:01
Show Gist options
  • Save ekoontz/1287985 to your computer and use it in GitHub Desktop.
Save ekoontz/1287985 to your computer and use it in GitHub Desktop.
repeat a given HBase test
#!/bin/sh
# example usage (run in top-level HBase directory) :
#
# src/repeat.sh TestRegionServerCoprocessorExceptionWithAbort
testcase=$1
# see also http://hbase.apache.org/book/hbase.tests.html
i=0
mvn clean
while [ "$?" -eq "0" ] ; do
i=`expr $i + 1`
echo "****RUNNING ITERATION $i *****"
mvn test -PlocalTests -Dtest=$testcase
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