Skip to content

Commit c281be5

Browse files
committed
⚙️ Let function could iterate all file paths to modify and save the test module path.
1 parent 035cd23 commit c281be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/test/get-all-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ get_all_test_modules_under_subpkg() {
5454
declare -a testpatharray=( $(ls -F "$1" | grep -v '/$' | grep -v '__init__.py' | grep -v 'test_config.py' | grep -v -E '^_[a-z_]{1,64}.py' | grep -v '__pycache__'))
5555

5656
declare -a alltestpaths
57-
for test_module_path in ${testpatharray};
57+
for test_module_path in "${testpatharray[@]}";
5858
do
5959
alltestpaths+=("$1$test_module_path")
6060
done

0 commit comments

Comments
 (0)