diff options
author | Mansheng Yang <myang@dytechlab.com> | 2017-09-15 10:19:04 +0200 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2017-09-15 11:29:33 +0200 |
commit | b0b904839b71f2c147a2d04f4e014b687690dd10 (patch) | |
tree | cf9f38e4834847ebace97cadff9f31b3cb77d79b /tools/test | |
parent | 03e701887fb83fd8bf99f85c951a2dc81e56332f (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-x | tools/test/collect_coverage.sh | 2 |
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=$? |