-# run all of the tests, making sure failures at this stage don't cause travis failures
-# run all of the tests, making sure failures at this stage don't cause travis failures
-ctest -j2 || true
-ctest -j2 || true
-# get a list of all of the failed tests into this stupid ctest format
-# get a list of all of the failed tests into this stupid ctest format
-python -c 'fn = "Testing/Temporary/LastTestsFailed.log"; import os; os.path.exists(fn) or exit(0); l = [line.split(":")[0] for line in open(fn)]; triplets = zip(l, l, [","]*len(l)); print "".join(",".join(t) for t in triplets)' > FailedTests.log
-python -c "import os; fn = os.path.join('Testing', 'Temporary', 'LastTestsFailed.log'); os.path.exists(fn) or exit(0); failed = [line.split(':')[0] for line in open(fn)]; print(','.join(x+','+x for x in failed))" > FailedTests.log
-# rerun all of the failed tests
-# rerun all of the failed tests
-if [ -s Testing/Temporary/LastTestsFailed.log ]; then ctest -I FailedTests.log; fi;
-if [ -s Testing/Temporary/LastTestsFailed.log ]; then ctest -I FailedTests.log; fi;