Forward script parameters into tests (#11328)

This patch forwards whatever parameter passed into run-tests to ctest or google test.
I'm using this to pass `--gtest_filter=TheInterestingTest` to run-tests
This commit is contained in:
Breno Rodrigues Guimarães authored and GitHub committed 2020-04-18 05:18:47 +01:00
1 parent ac8b176f02
commit 81ebacc0cf
1 file changed
+2 -2
+2 -2
View File
@@ -12,8 +12,8 @@ echo -e "\033[0;36mBuilding OpenRCT2 repository indexes...\033[0m"
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
# Now run all the tests
echo -e "\033[0;36mRunning OpenRCT2 tests...\033[0m"
./tests --gtest_output=xml:../artifacts/test-results.xml
./tests --gtest_output=xml:../artifacts/test-results.xml "$@"
else
echo -e "\033[0;36mRunning OpenRCT2 tests...\033[0m"
ctest --output-on-failure
ctest --output-on-failure "$@"
fi