forked from M-Labs/artiq
1
0
Fork 0

test: check return value of subprocesses in test_compile

This commit is contained in:
Sebastien Bourdeauducq 2023-10-09 10:07:04 +08:00
parent e23e4d39d7
commit 9c90f923d2
1 changed files with 2 additions and 2 deletions

View File

@ -49,9 +49,9 @@ class TestCompile(ExperimentCase):
mgmt.clear_log()
with tempfile.TemporaryDirectory() as tmp:
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__])
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")])
log = mgmt.get_log()
self.assertIn("test_artiq_compile", log)