Skip to content

Instantly share code, notes, and snippets.

@joakime
Last active November 8, 2016 17:02
Show Gist options
  • Save joakime/3710683 to your computer and use it in GitHub Desktop.
Save joakime/3710683 to your computer and use it in GitHub Desktop.
Bash Script to loop mvn test till failure (for intermittent test failures)
#!/bin/bash
let count=0
while mvn test $* 2>&1 > target/lastbuild.log
do
now=`date`
echo "Test Run $count - $now" >> target/looptest.log
let count=$count+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment