File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -573,11 +573,13 @@ def _run_a_test(
573573
574574 # Render the command for this test.
575575
576- # First extract the variables and values from 'options'
577- # and then 'inputs'.
576+ # First extract any variables and values from 'options' (if there are any).
578577 job_variables : Dict [str , Any ] = {}
579- for variable in job_definition .tests [job_test_name ].options :
580- job_variables [variable ] = job_definition .tests [job_test_name ].options [variable ]
578+ if job_definition .tests [job_test_name ].options :
579+ for variable in job_definition .tests [job_test_name ].options :
580+ job_variables [variable ] = job_definition .tests [job_test_name ].options [
581+ variable
582+ ]
581583
582584 # If the option variable's declaration is 'multiple'
583585 # it must be handled as a list, e.g. it might be declared like this: -
You can’t perform that action at this time.
0 commit comments