From 226b7d1398ee2951868709cc92d316ad8b9f9afc Mon Sep 17 00:00:00 2001 From: edo-neo Date: Wed, 11 Dec 2024 15:16:35 +0100 Subject: [PATCH] fix st-ten-6 --- src/ui/test/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/test/test.py b/src/ui/test/test.py index 005f4c5..3fff6f1 100755 --- a/src/ui/test/test.py +++ b/src/ui/test/test.py @@ -455,8 +455,9 @@ class Test(Widget): leak1_index = step_types.index("leak_1") leak2_index = step_types.index("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={})) - inserted_instruction = True + if self.config["hardware_config"].get("second_leak_test", "yes") == "no": + 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 if not inserted_instruction: