fix st-ten-6
This commit is contained in:
parent
bda17a5452
commit
226b7d1398
|
|
@ -455,8 +455,9 @@ class Test(Widget):
|
||||||
leak1_index = step_types.index("leak_1")
|
leak1_index = step_types.index("leak_1")
|
||||||
leak2_index = step_types.index("leak_2")
|
leak2_index = step_types.index("leak_2")
|
||||||
if leak1_index + 1 == leak2_index: # Ensure 'leak_1' is immediately followed by 'leak_2'
|
if leak1_index + 1 == leak2_index: # Ensure 'leak_1' is immediately followed by 'leak_2'
|
||||||
steps.insert(leak2_index, Step(step_type="instruction_extra", spec={}))
|
if self.config["hardware_config"].get("second_leak_test", "yes") == "no":
|
||||||
inserted_instruction = True
|
steps.insert(leak2_index, Step(step_type="instruction_extra", spec={}))
|
||||||
|
inserted_instruction = True
|
||||||
|
|
||||||
# Insert 'instruction_extra' after the first 'instructions' if not inserted between leaks
|
# Insert 'instruction_extra' after the first 'instructions' if not inserted between leaks
|
||||||
if not inserted_instruction:
|
if not inserted_instruction:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user