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