File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments