From 9c90f923d2be2b7b10f1fe18afa0b30b064630e8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 9 Oct 2023 10:07:04 +0800 Subject: [PATCH] test: check return value of subprocesses in test_compile --- artiq/test/coredevice/test_compile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/test/coredevice/test_compile.py b/artiq/test/coredevice/test_compile.py index efb6073d5..9b97c7968 100644 --- a/artiq/test/coredevice/test_compile.py +++ b/artiq/test/coredevice/test_compile.py @@ -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)