diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 1c7df0982..ad10e4354 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -629,7 +629,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+=$(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