path: root/test
diff options
authorStephen Warren <>2016-02-03 10:42:11 -0700
committerSimon Glass <>2016-02-09 15:41:19 -0700
commitac99831b7d0f4e00c8dd32b604c2448260dd2776 (patch)
tree2df15f29c3cd823adc85f30d75d212a68f1e5bcb /test
parent986fe378172fa4bd5be1432ab2f8f7c2b1c43bae (diff)
test/py: exit(1) if there are problems running py.test
The test/py/ wrapper script catches exceptions thrown when exec()ing py.test in order to print a helpful error message. However, the exception handling code squashes the exception and so the script exits with a non-zero exit code, leading callers to believe that it passed. Fix this. Signed-off-by: Stephen Warren <>
Diffstat (limited to 'test')
1 files changed, 1 insertions, 0 deletions
diff --git a/test/py/ b/test/py/
index 95671d4737..74e560a4d3 100755
--- a/test/py/
+++ b/test/py/
@@ -30,3 +30,4 @@ except:
print >>sys.stderr, '''
exec(py.test) failed; perhaps you are missing some dependencies?
See test/py/ for the list.'''
+ sys.exit(1)
OpenPOWER on IntegriCloud