make test: properly propagate exit status 49/5849/4
authorKlement Sekera <ksekera@cisco.com>
Fri, 24 Mar 2017 03:29:06 +0000 (04:29 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 27 Mar 2017 17:57:41 +0000 (17:57 +0000)
Change-Id: Ie9f48a0d5e0a9cd08eb8f07d49149eee40f04131
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/run_tests.py

index 39b0936..1b9c677 100644 (file)
@@ -58,4 +58,5 @@ if __name__ == '__main__':
     for d in args.dir:
         print("Adding tests from directory tree %s" % d)
         add_from_dir(suite, d)
-    VppTestRunner(verbosity=verbose, failfast=failfast).run(suite)
+    sys.exit(not VppTestRunner(verbosity=verbose,
+                               failfast=failfast).run(suite).wasSuccessful())