Skip to content

Commit 2569db7

Browse files
committed
⚙️ Fix all code style issues.
1 parent 6d4b743 commit 2569db7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/ci/get-all-tests.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,19 @@ get_all_test_subpackage() {
3030
then
3131
# Still has test subpackage won't scan
3232
declare test_path="$test_subpkg*/"
33-
declare -a test_subpkg_array=( $(ls -d $test_path | grep -v '__pycache__') )
33+
declare -a test_subpkg_array=( $(ls -d "$test_path" | grep -v '__pycache__') )
3434

3535
if [ ${#test_subpkg_array[@]} != 0 ];
3636
then
3737
# No any directory under this path, try to get the test modules
3838
all_test_subpkgs+=( "${test_subpkg_array[@]}" )
39+
# shellcheck disable=SC2004
3940
get_all_test_subpackage $(( $index + 1 ))
4041
else
4142
# Has some directories under this path, keep searching
42-
if [ ${#all_test_subpkgs[@]} != $index ];
43+
if [ ${#all_test_subpkgs[@]} != "$index" ];
4344
then
45+
# shellcheck disable=SC2004
4446
get_all_test_subpackage $(( $index + 1 ))
4547
fi
4648
fi

0 commit comments

Comments
 (0)