From 9ffaf82877972b94a03da8f1eac72769e1c023f5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 15 Mar 2016 21:44:56 +0800 Subject: [PATCH] test/analyzer: check that last message is StoppedMessage --- artiq/test/coredevice/test_analyzer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/test/coredevice/test_analyzer.py b/artiq/test/coredevice/test_analyzer.py index f28fa1cda..93d359b01 100644 --- a/artiq/test/coredevice/test_analyzer.py +++ b/artiq/test/coredevice/test_analyzer.py @@ -1,5 +1,6 @@ from artiq.experiment import * -from artiq.coredevice.analyzer import decode_dump, OutputMessage, InputMessage +from artiq.coredevice.analyzer import (decode_dump, StoppedMessage, + OutputMessage, InputMessage) from artiq.test.hardware_testbench import ExperimentCase @@ -30,6 +31,7 @@ class AnalyzerTest(ExperimentCase): exp.run() dump = decode_dump(comm.get_analyzer_dump()) + self.assertIsInstance(dump.messages[-1], StoppedMessage) output_messages = [msg for msg in dump.messages if isinstance(msg, OutputMessage) and msg.address == 0]