Skip to content

Commit

Permalink
[SCons] Print error message if GTest exits abnormally
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Feb 23, 2017
1 parent 574462f commit fca22d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def addTestProgram(subdir, progName, env_vars={}):
code = subprocess.call([program.abspath, '--gtest_output=xml:'+resultsFile],
env=env['ENV'], cwd=workDir)

if not code:
if code:
print "FAILED: Test '{0}' exited with code {1}".format(progName, code)
else:
# Test was successful
open(passedFile.path, 'w').write(time.asctime()+'\n')

Expand Down

0 comments on commit fca22d9

Please sign in to comment.