From 4e9e8cab6009ebdb15f9fe693224d7e555f767b9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 23 Jun 2013 03:12:37 +0000 Subject: [PATCH] improve error reporting in test script --- tools/run_tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/run_tests.py b/tools/run_tests.py index d848c97d1..f058fbd94 100755 --- a/tools/run_tests.py +++ b/tools/run_tests.py @@ -257,11 +257,16 @@ def main(argv): tests = [] + output = '' for l in p.stdout: + output += l if not 'boost-test(RUN)' in l: continue test_name = os.path.split(l.split(' ')[1][1:-1])[1] tests.append(test_name) print 'found %d tests' % len(tests) + if len(tests) == 0: + print output + sys.exit(1) for toolset in toolsets: results = {}