update leak test logic: add conditional digital output for freefall leak tests and post-autotest warning popup

This commit is contained in:
edo-neo 2026-06-08 09:13:04 +02:00
parent 0af7ddc515
commit 214725a90d
2 changed files with 5 additions and 1 deletions

View File

@ -535,6 +535,9 @@ class Test(Widget):
else: else:
# Autotest succeeded; proceed to post-autotest actions # Autotest succeeded; proceed to post-autotest actions
self.autotesting = False 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": if self.autotesting_reason == "logout":
Users.logout() Users.logout()
self.main_window.open_login() self.main_window.open_login()

View File

@ -233,7 +233,8 @@ class Test_Leak(Test_Test):
self.components[self.tester_component].stop_test() self.components[self.tester_component].stop_test()
self.components[self.tester_component].pause() self.components[self.tester_component].pause()
self.disconnect(self.get_connection) 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() super().stop()
self.start_b.setEnabled(False) self.start_b.setEnabled(False)
self.stop_b.setEnabled(False) self.stop_b.setEnabled(False)