diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 92499cfae..70ade3d83 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -661,7 +661,7 @@ function create_test_list() { # First search all scripts in main SPDK directory. completion=$(grep -shI -d skip --include="*.sh" -e "run_test " $rootdir/*) # Follow up with search in test directory recursively. - completion+=$(grep -rshI --include="*.sh" --exclude="*autotest_common.sh" -e "run_test " $rootdir/test) + completion+=$'\n'$(grep -rshI --include="*.sh" --exclude="*autotest_common.sh" -e "run_test " $rootdir/test) printf "%s" "$completion" | grep -v "#" \ | sed 's/^.*run_test/run_test/' | awk '{print $2}' \ | sed 's/\"//g' | sort > $output_dir/all_tests.txt || true