make test: properly propagate exit status

Change-Id: Ie9f48a0d5e0a9cd08eb8f07d49149eee40f04131
Signed-off-by: Klement Sekera <ksekera@cisco.com>
(cherry picked from commit 0c8ad446db)
This commit is contained in:
Klement Sekera
2017-03-24 04:29:06 +01:00
committed by Ole Trøan
parent 4cb2357443
commit 8a74f2a480

View 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())