Commit 64fdc0d3 authored by Robert McGibbon's avatar Robert McGibbon
Browse files

only rerun when at least one test failed

parent d37b0fce
...@@ -19,7 +19,7 @@ script: ...@@ -19,7 +19,7 @@ script:
- # 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 '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
- # rerun all of the failed tests - # rerun all of the failed tests
- ctest -I FailedTests.log - [[ -s FailedTests.log ]] && ctest -I FailedTests.log
- # run the python tests too - # run the python tests too
- cd python/tests - cd python/tests
- nosetests -vv - nosetests -vv
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment