Merge pull request #11 from eltociear/patch-1

chore: update debug-test.sh
This commit is contained in:
Li, Zonghang 2025-04-22 00:32:19 +08:00 committed by GitHub
commit ca95b1efad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ printf "\n\nGathering tests that fit REGEX: ${test_suite} ...\n"
pushd "$build_dir" pushd "$build_dir"
tests=($(ctest -R ${test_suite} -V -N | grep -E " +Test +#[0-9]+*" | cut -d':' -f2 | awk '{$1=$1};1')) tests=($(ctest -R ${test_suite} -V -N | grep -E " +Test +#[0-9]+*" | cut -d':' -f2 | awk '{$1=$1};1'))
if [ ${#tests[@]} -eq 0 ]; then if [ ${#tests[@]} -eq 0 ]; then
abort "No tests avaliable... check your compliation process..." abort "No tests avaliable... check your compilation process..."
fi fi
popd > /dev/null || exit 1 popd > /dev/null || exit 1