Skip to content

Commit a2ba35b

Browse files
[TESTING] Apply un-related fix from review
Changes in file tests/check_cc_lines: * fixes a regression where no files were checked
1 parent 1f38775 commit a2ba35b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/check_cc_lines

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ fi
138138

139139
_TEST_YEAR=$(date -j "+%C%y" 2>/dev/null ;)
140140

141-
for _TEST_DOC in $(git ls-files -z --exclude-standard -- '*.py' '*.md' '*.txt' 2>&1 | xargs -0 -I{} "${_TEST_FILE_VALIDATOR} {}" ; wait ;) ; do
141+
# Get a list of files to check using git ls-tree with filtering
142+
FILES_TO_CHECK=$(git ls-tree -r --full-tree --name-only HEAD -- *.md *.py *.txt **/*.md **/*.txt **/*.py 2>/dev/null || EXIT_CODE=3)
143+
144+
for _TEST_DOC in $FILES_TO_CHECK ; do
142145
if [[ ($(grep -cF 'Disclaimer' "${_TEST_DOC}" 2>&1 || : ;) -ne 0) ]] ; then
143146
printf "%s\n" "SKIP: ${_TEST_DOC} is disclaimed." ;
144147
EXIT_CODE=126;

0 commit comments

Comments
 (0)