improve error reporting in test script
This commit is contained in:
@@ -257,11 +257,16 @@ def main(argv):
|
|||||||
|
|
||||||
tests = []
|
tests = []
|
||||||
|
|
||||||
|
output = ''
|
||||||
for l in p.stdout:
|
for l in p.stdout:
|
||||||
|
output += l
|
||||||
if not 'boost-test(RUN)' in l: continue
|
if not 'boost-test(RUN)' in l: continue
|
||||||
test_name = os.path.split(l.split(' ')[1][1:-1])[1]
|
test_name = os.path.split(l.split(' ')[1][1:-1])[1]
|
||||||
tests.append(test_name)
|
tests.append(test_name)
|
||||||
print 'found %d tests' % len(tests)
|
print 'found %d tests' % len(tests)
|
||||||
|
if len(tests) == 0:
|
||||||
|
print output
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
for toolset in toolsets:
|
for toolset in toolsets:
|
||||||
results = {}
|
results = {}
|
||||||
|
Reference in New Issue
Block a user