Skip to content

Commit efdc03b

Browse files
committed
Reset to the previous TESTING_DEPTH
1 parent dcaedbf commit efdc03b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ jobs:
535535
base_name=$(basename "$file" .R | sed s/test-shinytest2-//g)
536536
# Find matching test files (parenthesis to not match arguments)
537537
test_files=$(grep -l "$base_name(" "$test_dir"test-shinytest2-*.R)
538+
td=$TESTING_DEPTH
538539
539540
# Modify in place so that only modified modules are tested.
540541
if [[ -n "$test_files" ]]
@@ -546,10 +547,10 @@ jobs:
546547
helper_modified="yes"
547548
} fi
548549
549-
# R file without corresponding test file: assume it affects all
550+
# R file without corresponding test file: reset the testing depth
550551
if [[ -n "$helper_modified" ]]
551552
then {
552-
TESTING_DEPTH=5
553+
TESTING_DEPTH=td
553554
} fi
554555
done
555556
shell: bash

0 commit comments

Comments
 (0)