forked from M-Labs/artiq
test: check return value of subprocesses in test_compile
This commit is contained in:
parent
e23e4d39d7
commit
9c90f923d2
|
@ -49,9 +49,9 @@ class TestCompile(ExperimentCase):
|
||||||
mgmt.clear_log()
|
mgmt.clear_log()
|
||||||
with tempfile.TemporaryDirectory() as tmp:
|
with tempfile.TemporaryDirectory() as tmp:
|
||||||
db_path = os.path.join(artiq_root, "device_db.py")
|
db_path = os.path.join(artiq_root, "device_db.py")
|
||||||
subprocess.call([sys.executable, "-m", "artiq.frontend.artiq_compile", "--device-db", db_path,
|
subprocess.check_call([sys.executable, "-m", "artiq.frontend.artiq_compile", "--device-db", db_path,
|
||||||
"-c", "CheckLog", "-o", os.path.join(tmp, "check_log.elf"), __file__])
|
"-c", "CheckLog", "-o", os.path.join(tmp, "check_log.elf"), __file__])
|
||||||
subprocess.call([sys.executable, "-m", "artiq.frontend.artiq_run", "--device-db", db_path,
|
subprocess.check_call([sys.executable, "-m", "artiq.frontend.artiq_run", "--device-db", db_path,
|
||||||
os.path.join(tmp, "check_log.elf")])
|
os.path.join(tmp, "check_log.elf")])
|
||||||
log = mgmt.get_log()
|
log = mgmt.get_log()
|
||||||
self.assertIn("test_artiq_compile", log)
|
self.assertIn("test_artiq_compile", log)
|
||||||
|
|
Loading…
Reference in New Issue