Skip to content

Commit cb109f4

Browse files
authored
fix: export test_case_run (#5499)
- Export the TEST_CASE_RUN variable because subprocesses reference it when building the file list. - Remove a duplicate file that we didn't catch because Jscpd was not running due to the TEST_CASE_RUN variable not being exported. Fix #5483
1 parent 25cb7af commit cb109f4

3 files changed

Lines changed: 2 additions & 92 deletions

File tree

lib/functions/buildFileList.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ BuildFileArrays() {
199199
RAW_FILE_ARRAY=("$@")
200200

201201
debug "Categorizing the following files: ${RAW_FILE_ARRAY[*]}"
202-
debug "FILTER_REGEX_INCLUDE: ${FILTER_REGEX_INCLUDE}, FILTER_REGEX_EXCLUDE: ${FILTER_REGEX_EXCLUDE}"
202+
debug "FILTER_REGEX_INCLUDE: ${FILTER_REGEX_INCLUDE}, FILTER_REGEX_EXCLUDE: ${FILTER_REGEX_EXCLUDE}, TEST_CASE_RUN: ${TEST_CASE_RUN}"
203203

204204
ValidateBooleanVariable "IGNORE_GENERATED_FILES" "${IGNORE_GENERATED_FILES}"
205205
ValidateBooleanVariable "IGNORE_GITIGNORED_FILES" "${IGNORE_GITIGNORED_FILES}"

lib/functions/linterVersions.sh

Lines changed: 0 additions & 91 deletions
This file was deleted.

lib/linter.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ SUPPRESS_POSSUM="${SUPPRESS_POSSUM:-false}"
9393
declare -l TEST_CASE_RUN
9494
# Option to tell code to run only test cases
9595
TEST_CASE_RUN="${TEST_CASE_RUN:-"false"}"
96+
export TEST_CASE_RUN
9697

9798
# We want a lowercase value
9899
declare -l USE_FIND_ALGORITHM

0 commit comments

Comments
 (0)