8000 CI Fix don't run all random seeds all the time (#23190) · jjerphan/scikit-learn@55ac9ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 55ac9ed

Browse files
jeremiedbbjjerphan
authored andcommitted
CI Fix don't run all random seeds all the time (scikit-learn#23190)
1 parent 52ca62d commit 55ac9ed

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build_tools/azure/get_selected_tests.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def get_selected_tests():
2626
if __name__ == "__main__":
2727
# set the environment variable to be propagated to other steps
2828
selected_tests = get_selected_tests()
29-
print(f"##vso[task.setvariable variable=SELECTED_TESTS]'{selected_tests}'")
3029

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")

build_tools/azure/test_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if [[ "$SHOW_SHORT_SUMMARY" == "true" ]]; then
7070
TEST_CMD="$TEST_CMD -ra"
7171
fi
7272

73-
if [[ "$SELECTED_TESTS" != "" ]]; then
73+
if [[ -n "$SELECTED_TESTS" ]]; then
7474
TEST_CMD="$TEST_CMD -k $SELECTED_TESTS"
7575

7676
# Override to make selected tests run on all random seeds

0 commit comments

Comments
 (0)
0