From c2b0617f32d43984babcaa109b98b7a1f7fb9175 Mon Sep 17 00:00:00 2001 From: Mark Mossberg Date: Thu, 25 May 2017 16:04:34 -0400 Subject: [PATCH] Check returncode of manticore (#273) --- tests/test_binaries.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_binaries.py b/tests/test_binaries.py index 081f3c0..c051fcc 100644 --- a/tests/test_binaries.py +++ b/tests/test_binaries.py @@ -30,7 +30,8 @@ class IntegrationTest(unittest.TestCase): time.sleep(1) sys.stderr.write("~") secs_used += 1 - + + self.assertEqual(po.returncode, 0) self.assertTrue(secs_used < timeout) sys.stderr.write("\n") @@ -45,7 +46,7 @@ class IntegrationTest(unittest.TestCase): workspace = '%s/workspace'%self.test_dir t = time.time() with open(os.path.join(os.pardir, '%s/output.log'%self.test_dir), "w") as output: - po = subprocess.call(['python', '-m', 'manticore', + subprocess.check_call(['python', '-m', 'manticore', '--workspace', workspace, '--timeout', '1', '--procs', '4',