Skip to content

Commit 5ff9dea

Browse files
committed
Return value in test.py
1 parent 9282af3 commit 5ff9dea

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
test_defaults = [
77
'tests/test_freeform.py',
88
'tests/test_idwparams.py',
9-
'tests/test_affine.py',
109
'tests/test_idw.py',
1110
'tests/test_khandler.py',
1211
'tests/test_mdpahandler.py',
1312
'tests/test_openfhandler.py',
14-
'tests/test_package.py',
15-
'tests/test_radial.py',
1613
'tests/test_rbfparams.py',
1714
'tests/test_stlhandler.py',
1815
'tests/test_unvhandler.py',
@@ -27,15 +24,15 @@
2724
default_argv = ['--tests'] + test_defaults
2825
cad_argv = ['--tests'] + test_cad
2926

27+
return_value = 0 # Success
28+
3029
try:
3130
import pygem.cad
32-
nose.run(argv=cad_argv)
31+
return_value = 1 if nose.run(argv=cad_argv) is False else 0
3332
except:
3433
print('module OCC not found, skip tests for CAD')
3534

36-
nose.run(argv=default_argv)
37-
38-
39-
40-
35+
return_value = 1 if nose.run(argv=default_argv) is False else 0
4136

37+
import sys
38+
sys.exit(int(return_value))

0 commit comments

Comments
 (0)