From 81ebacc0cf1920b1ba9f598c1a67c14c68895723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Breno=20Rodrigues=20Guimar=C3=A3es?= Date: Sat, 18 Apr 2020 01:18:47 -0300 Subject: [PATCH] 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 --- scripts/run-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run-tests b/scripts/run-tests index bb9908c1f6..1930912053 100755 --- a/scripts/run-tests +++ b/scripts/run-tests @@ -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