From 77cd3a9d4b535ad3fd9bc15ff2f006f60db193ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Mon, 22 Apr 2024 15:23:35 +0200 Subject: [PATCH] Add missing file + delay in RST test --- Software/Integrationtests/tests/TestRST.py | 4 ++++ Software/Integrationtests/tests/TestUpdate.py | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 Software/Integrationtests/tests/TestUpdate.py diff --git a/Software/Integrationtests/tests/TestRST.py b/Software/Integrationtests/tests/TestRST.py index 221b7fd..84dceba 100644 --- a/Software/Integrationtests/tests/TestRST.py +++ b/Software/Integrationtests/tests/TestRST.py @@ -242,6 +242,10 @@ class TestRST(TestBase): # Reset and verify all settings revert. self.vna.cmd("*RST") + + # ... and wait a little bit here again to let the changes from the RST propagate from the device and back to the GUI (otherwise we might still read wrong external reference settings for example) + time.sleep(2) + settings2 = self.query_settings() for key, value in settings1.items(): self.assertEqual(value, settings2[key]) diff --git a/Software/Integrationtests/tests/TestUpdate.py b/Software/Integrationtests/tests/TestUpdate.py new file mode 100644 index 0000000..dc65539 --- /dev/null +++ b/Software/Integrationtests/tests/TestUpdate.py @@ -0,0 +1,7 @@ +from tests.TestBase import TestBase +import time + +class TestUpdate(TestBase): + def test_Update(self): + self.vna.cmd("DEV:UPDATE ../../combined.vnafw", timeout=60) +