Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cf8a3a

Browse files
committed
test script exits with non-zero exit code upon failure
svn path=/trunk/matplotlib/; revision=7537
1 parent f17a304 commit 4cf8a3a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/run-mpl-test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
sys.exit( 0 )
9090

9191
### Run nose
92-
nose.run( argv = args,
93-
plugins = [ MplNosePlugin() ] )
92+
success = nose.run( argv = args,
93+
plugins = [ MplNosePlugin() ] )
9494

9595
### do other stuff here
9696

@@ -104,3 +104,4 @@
104104
sys.stdout = originalStdout
105105
sys.stderr = originalStderr
106106

107+
sys.exit(not success)

0 commit comments

Comments
 (0)