tbt autostart
This commit is contained in:
parent
f5bcb12ff1
commit
b898948dbe
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user