From 80212f460e638090fa9de9a9f0c2ace9165f4c3e Mon Sep 17 00:00:00 2001 From: gr0vity Date: Sat, 7 Dec 2024 21:18:59 +0100 Subject: [PATCH] pass arguments to gtest-parallel --- ci/tests/run-gtest-parallel.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/tests/run-gtest-parallel.sh b/ci/tests/run-gtest-parallel.sh index d2369ed6e5..082197e138 100755 --- a/ci/tests/run-gtest-parallel.sh +++ b/ci/tests/run-gtest-parallel.sh @@ -9,6 +9,7 @@ if [ -z "${target-}" ]; then exit 1 fi +shift executable=./${target}$(get_exec_extension) # Get the project root directory (2 levels up from ci/tests) @@ -17,8 +18,8 @@ GTEST_PARALLEL="${PROJECT_ROOT}/submodules/gtest-parallel/gtest-parallel" if [ -f "${GTEST_PARALLEL}" ]; then echo "Running tests with gtest-parallel for target: ${target}" - "${GTEST_PARALLEL}" "${executable}" --worker=1 + "${GTEST_PARALLEL}" "${executable}" --worker=1 "$@" else echo "gtest-parallel not found at ${GTEST_PARALLEL}, running tests directly for target: ${target}" - "${executable}" + "${executable}" "$@" fi \ No newline at end of file