forked from rosebudai/OpenRCT2-Web
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:
1 parent
ac8b176f02
commit
81ebacc0cf
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
Reference in new issue
Block a user