From 29b77789fa80628a9bb5f38de336006e2331dc96 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Sat, 12 Mar 2022 18:37:43 +0100 Subject: [PATCH] Run tests in runfiles directory without `LCOV_MERGER` `collect_coverage.sh` has the execution root as it's working directory, but tests should still be run from their runfiles directory if `LCOV_MERGER` is missing. --- tools/test/collect_coverage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test/collect_coverage.sh b/tools/test/collect_coverage.sh index 34eb11637b1139..64dbb6944a2f12 100755 --- a/tools/test/collect_coverage.sh +++ b/tools/test/collect_coverage.sh @@ -40,6 +40,7 @@ if [[ -z "$LCOV_MERGER" ]]; then # TODO(cmita): Improve this situation so this early-exit isn't required. touch $COVERAGE_OUTPUT_FILE # Execute the test. + cd "$TEST_SRCDIR/$TEST_WORKSPACE" "$@" TEST_STATUS=$? exit "$TEST_STATUS"