From 214456ab055296eeac01f61c773216a7c6c119bd Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 11 Sep 2024 19:33:40 -0500 Subject: [PATCH] scons exit(1) when tests fail --- test/SConscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/SConscript b/test/SConscript index 9ca3e3fb1..6d50fb5b3 100644 --- a/test/SConscript +++ b/test/SConscript @@ -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")))