File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ def get_selected_tests():
26
26
if __name__ == "__main__" :
27
27
# set the environment variable to be propagated to other steps
28
28
selected_tests = get_selected_tests ()
29
- print (f"##vso[task.setvariable variable=SELECTED_TESTS]'{ selected_tests } '" )
30
29
31
- print (f"selected tests: { selected_tests } " ) # helps debugging
30
+ if selected_tests :
31
+ print (f"##vso[task.setvariable variable=SELECTED_TESTS]'{ selected_tests } '" )
32
+ print (f"selected tests: { selected_tests } " ) # helps debugging
33
+ else :
34
+ print ("no selected tests" )
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ if [[ "$SHOW_SHORT_SUMMARY" == "true" ]]; then
70
70
TEST_CMD=" $TEST_CMD -ra"
71
71
fi
72
72
73
- if [[ " $SELECTED_TESTS " != " " ]]; then
73
+ if [[ -n " $SELECTED_TESTS " ]]; then
74
74
TEST_CMD=" $TEST_CMD -k $SELECTED_TESTS "
75
75
76
76
# Override to make selected tests run on all random seeds
You can’t perform that action at this time.
0 commit comments