From 58d3cfd8043d98422fe9cdf590b0e8c68a2a8dd2 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 30 Aug 2011 16:14:00 -0400 Subject: [PATCH] run-tests reacts to compiler exit code --- run-tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run-tests b/run-tests index a6707c4..6a9fb31 100755 --- a/run-tests +++ b/run-tests @@ -14,7 +14,10 @@ def main(argv): exe = 'tests/' + test_name if os.path.exists(exe): os.unlink(exe) - Popen(['./jtlc', '-o', exe, test_source]).wait() + rc = Popen(['./jtlc', '-o', exe, test_source]).wait() + if rc != 0: + sys.stdout.write('Failed to compile test %s\n' % test_name) + passed = False if os.path.exists(exe): output = Popen([exe], stdout=PIPE).communicate()[0] if os.path.exists(exe + '.out'):