tbt autostart

This commit is contained in:
gg 2025-04-01 16:18:39 +02:00
parent f5bcb12ff1
commit b898948dbe
2 changed files with 8 additions and 0 deletions

View File

@ -169,6 +169,10 @@ class Test(Widget):
self.autotesting = False
self.autotesting_reason = None
self.autotest_cycle_steps = None
if "--no-autotest" in sys.argv:
self.setStyleSheet("background-color: red;")
else:
self.setStyleSheet("background-color: white;")
if "--no-autotest" not in sys.argv:
if "--test-autotest" in sys.argv:
self.autotest_period = int(60 * 1000) # 1 min

View File

@ -91,6 +91,10 @@ class Test_Leak(Test_Test):
self.simulate = True
else:
self.simulate = False
if "--autostart" in sys.argv:
self.start_b.setEnabled(True)
self.start_b.click()
# /TESTING
show = super().start(recipe=recipe, step=step, pieces=pieces)
if show is False: