Skip to content

Commit

Permalink
scons exit(1) when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Sep 12, 2024
1 parent 2dd2a49 commit 214456a
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 @@ -19,8 +19,10 @@ else:
def run_tests(env,target,source):
import subprocess
app = str(source[0].abspath)
if not subprocess.call(app):
if subprocess.call(app) == 0:
open(target[0].abspath,'w').write("PASSED\n")
else:
exit(1)

env.Install("#build/test/", test)
env.AlwaysBuild(env.Install("#build/test/", Dir("#test/files")))
Expand Down

0 comments on commit 214456a

Please sign in to comment.