From f8ee0653683be99a6351181df56b080678af80e4 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 8 Apr 2014 16:27:01 +0000 Subject: [PATCH] [Test] Fix test status report if Python test crashes --- test/SConscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/SConscript b/test/SConscript index 145edae84..144e28537 100644 --- a/test/SConscript +++ b/test/SConscript @@ -98,6 +98,7 @@ def addPythonTest(testname, subdir, script, interpreter, outfile, # Test was successful open(target[0].path, 'w').write(time.asctime()+'\n') + failures = 0 if os.path.exists(outfile): # Determine individual test status for line in open(outfile): @@ -106,8 +107,10 @@ def addPythonTest(testname, subdir, script, interpreter, outfile, testResults.passed[':'.join((testname,name))] = 1 elif status in ('FAIL', 'ERROR'): testResults.failed[':'.join((testname,name))] = 1 - else: - # Total failure - unable to determine status of individual tests + failures += 1 + + if code and failures == 0: + # Failure, but unable to determine status of individual tests testResults.failed[testname] = True testenv = localenv.Clone()