mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-26 18:34:14 +01:00
adjust limits and run HIL tests in no-gui mode
This commit is contained in:
parent
a4faeb28b0
commit
8df7d1b7be
|
|
@ -8,7 +8,7 @@ from signal import SIGINT
|
|||
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -170,6 +170,6 @@ class TestCalibration(TestBase):
|
|||
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -53,10 +53,10 @@ class TestSASweep(TestBase):
|
|||
|
||||
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 @@ class TestSASweep(TestBase):
|
|||
|
||||
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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue