From b05cbcbc245125a770ae65f400dd39fe69e5a87f Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 13 Aug 2020 12:23:32 +0800 Subject: [PATCH] test: set uart log level to INFO for DMA tests --- artiq/test/coredevice/test_rtio.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/artiq/test/coredevice/test_rtio.py b/artiq/test/coredevice/test_rtio.py index 96437d2a2..e090ebf1b 100644 --- a/artiq/test/coredevice/test_rtio.py +++ b/artiq/test/coredevice/test_rtio.py @@ -652,6 +652,18 @@ class _DMA(EnvExperiment): class DMATest(ExperimentCase): + def setUp(self): + super().setUp() + # prevent DEBUG log messages causing delay for DMA + core_addr = self.device_mgr.get_desc("core")["arguments"]["host"] + self.mgmt = CommMgmt(core_addr) + self.mgmt.set_uart_log_level('INFO') + + def tearDown(self): + self.mgmt.set_uart_log_level('DEBUG') + self.mgmt.close() + super().tearDown() + def test_dma_storage(self): exp = self.create(_DMA) exp.record()