From: Stephen Warren Date: Wed, 3 Feb 2016 17:42:11 +0000 (-0700) Subject: test/py: exit(1) if there are problems running py.test X-Git-Tag: v2016.03-rc2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac99831b7d0f4e00c8dd32b604c2448260dd2776;p=platform%2Fkernel%2Fu-boot.git test/py: exit(1) if there are problems running py.test The test/py/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 --- diff --git a/test/py/test.py b/test/py/test.py index 95671d4..74e560a 100755 --- a/test/py/test.py +++ b/test/py/test.py @@ -30,3 +30,4 @@ except: print >>sys.stderr, ''' exec(py.test) failed; perhaps you are missing some dependencies? See test/py/README.md for the list.''' + sys.exit(1)