From 214725a90d7f0d0a33231c752cc40c0fe23d6a08 Mon Sep 17 00:00:00 2001 From: edo-neo Date: Mon, 8 Jun 2026 09:13:04 +0200 Subject: [PATCH] update leak test logic: add conditional digital output for freefall leak tests and post-autotest warning popup --- src/ui/test/test.py | 3 +++ src/ui/test_leak/test_leak.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/test/test.py b/src/ui/test/test.py index df60af6..95970ce 100755 --- a/src/ui/test/test.py +++ b/src/ui/test/test.py @@ -535,6 +535,9 @@ class Test(Widget): else: # Autotest succeeded; proceed to post-autotest actions self.autotesting = False + # MOSTRA IL POPUP RICHIESTO ALLA FINE DELL'AUTOTEST + QMessageBox.information(self, "Avviso", + "ATTENZIONE ,SCOLLEGARE IL TUBO-TUBO PRIMA DI INIZIARE A COLLAUDARE") if self.autotesting_reason == "logout": Users.logout() self.main_window.open_login() diff --git a/src/ui/test_leak/test_leak.py b/src/ui/test_leak/test_leak.py index 081f4c7..bc09171 100644 --- a/src/ui/test_leak/test_leak.py +++ b/src/ui/test_leak/test_leak.py @@ -233,7 +233,8 @@ class Test_Leak(Test_Test): self.components[self.tester_component].stop_test() self.components[self.tester_component].pause() self.disconnect(self.get_connection) - self.set_digital_out("first_output", 0) # Set low when test stops + if self.step.step_type == "test_freefall_leak": + self.set_digital_out("first_output", 0) # Set low when test stops super().stop() self.start_b.setEnabled(False) self.stop_b.setEnabled(False)