From 8df7d1b7be53374acd6c9d6c4d9937d50fef5510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Fri, 3 Jan 2025 17:07:29 +0100 Subject: [PATCH] adjust limits and run HIL tests in no-gui mode --- Software/Integrationtests/tests/TestBase.py | 2 +- Software/Integrationtests/tests/TestCalibration.py | 4 ++-- Software/Integrationtests/tests/TestSASweep.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Software/Integrationtests/tests/TestBase.py b/Software/Integrationtests/tests/TestBase.py index c5c63e1f..479766d6 100644 --- a/Software/Integrationtests/tests/TestBase.py +++ b/Software/Integrationtests/tests/TestBase.py @@ -8,7 +8,7 @@ class TestBase(unittest.TestCase): def setUp(self): - self.gui = subprocess.Popen([defs.GUI_PATH, '-p', '19544', '--reset-preferences', '-platform', 'offscreen'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + self.gui = subprocess.Popen([defs.GUI_PATH, '-p', '19544', '--reset-preferences', '--no-gui', '-platform', 'offscreen'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) # wait for the SCPI server to become available timeout = time.time() + 3; diff --git a/Software/Integrationtests/tests/TestCalibration.py b/Software/Integrationtests/tests/TestCalibration.py index 6e93b4be..3ed3709a 100644 --- a/Software/Integrationtests/tests/TestCalibration.py +++ b/Software/Integrationtests/tests/TestCalibration.py @@ -170,6 +170,6 @@ def test_SOLT_calibration(self): self.assertTrace_dB(S21, -13, 5) # Reflection should be below -10dB (much lower for most frequencies) - self.assertTrace_dB(S11, -100, 90) - self.assertTrace_dB(S22, -100, 90) + self.assertTrace_dB(S11, -100, 91) + self.assertTrace_dB(S22, -100, 91) diff --git a/Software/Integrationtests/tests/TestSASweep.py b/Software/Integrationtests/tests/TestSASweep.py index c3620a0c..79303fbd 100644 --- a/Software/Integrationtests/tests/TestSASweep.py +++ b/Software/Integrationtests/tests/TestSASweep.py @@ -53,10 +53,10 @@ def test_sweep_zerospan(self): self.assertEqual(port1[0][0], 0.0) self.assertGreater(port1[-1][0], 4) - self.assertLess(port1[-1][0], 5) + self.assertLess(port1[-1][0], 8) self.assertEqual(port2[0][0], 0.0) self.assertGreater(port2[-1][0], 4) - self.assertLess(port2[-1][0], 5) + self.assertLess(port2[-1][0], 8) # No signal present, signal level should be very low self.assertTrace_dB(port1, -140, 60) @@ -64,7 +64,7 @@ def test_sweep_zerospan(self): def test_tracking_generator(self): self.vna.cmd(":DEV:MODE SA") - self.vna.cmd(":SA:FREQ:CENT 2000000000") + self.vna.cmd(":SA:FREQ:CENT 1930000000") self.vna.cmd(":SA:FREQ:SPAN 200000") self.vna.cmd(":SA:ACQ:RBW 10000") self.vna.cmd(":SA:TRACK:PORT 1")