Skip to content

Commit

Permalink
run_nose_tests.py: Exit with a non-zero error code if tests fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Apr 29, 2014
1 parent b75d9c2 commit a2e843e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dev/tools/run_nose_tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
'''
Run all the tests using nose.
Run all the tests using nose. Exits with error code 1 if a test failed.
'''
import sys

import brian2
brian2.test()

if not brian2.test(): # If the test fails, exit with a non-zero error code
sys.exit(1)

0 comments on commit a2e843e

Please sign in to comment.