Fix the test runner script to work on mixed case names.

This commit is contained in:
Tom Alexander 2023-04-22 21:50:34 -04:00
parent 0ca6ce504f
commit 76c6908707
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -13,9 +13,9 @@ function get_test_names {
test_file_full_path=$(readlink -f "$test_file")
relative_to_samples=$(realpath --relative-to "$samples_dir" "$test_file_full_path")
without_extension="${relative_to_samples%.org}"
echo "${without_extension/\//_}"
echo "${without_extension/\//_}" | tr '[:upper:]' '[:lower:]'
else
echo "$test_file"
echo "$test_file" | tr '[:upper:]' '[:lower:]'
fi
done
}