run-tests reacts to compiler exit code
This commit is contained in:
parent
0417799276
commit
58d3cfd804
@ -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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user