aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/test
diff options
context:
space:
mode:
authorGravatar Mansheng Yang <myang@dytechlab.com>2017-09-15 10:19:04 +0200
committerGravatar Philipp Wollermann <philwo@google.com>2017-09-15 11:29:33 +0200
commitb0b904839b71f2c147a2d04f4e014b687690dd10 (patch)
treecf9f38e4834847ebace97cadff9f31b3cb77d79b /tools/test
parent03e701887fb83fd8bf99f85c951a2dc81e56332f (diff)
Set correct PWD in coverage (https://docs.bazel.build/versions/master/test-encyclopedia.html) mentioned that when running tests the `PWD` should be `$TEST_SRCDIR/workspace-name`
Closes #3616. PiperOrigin-RevId: 168806570
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test/collect_coverage.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/collect_coverage.sh b/tools/test/collect_coverage.sh
index 559c60d60f..d4251395b3 100755
--- a/tools/test/collect_coverage.sh
+++ b/tools/test/collect_coverage.sh
@@ -90,7 +90,7 @@ if [[ "$COVERAGE_LEGACY_MODE" ]]; then
export GCOV_PREFIX="${COVERAGE_DIR}"
fi
-cd "$TEST_SRCDIR"
+cd "$TEST_SRCDIR/$TEST_WORKSPACE"
"$@"
TEST_STATUS=$?