aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/test
diff options
context:
space:
mode:
authorGravatar Gursewak <grswkscheema@gmail.com>2018-01-16 09:37:49 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-16 09:39:19 -0800
commit644ada0444a9db285eb4e6c2511fc9581cc69880 (patch)
treece38e29734b0b140f002d544b581a9009eb9786c /tools/test
parentbea6712789cd7e70db23674402fb11a175cfc896 (diff)
HOME missing from the action env (despite mentioned in the docs)
Issue #4401 Closes #4437. PiperOrigin-RevId: 182067976
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test/test-setup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test/test-setup.sh b/tools/test/test-setup.sh
index a61e0c7007..3b7ce2db31 100755
--- a/tools/test/test-setup.sh
+++ b/tools/test/test-setup.sh
@@ -57,6 +57,7 @@ is_absolute "$TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR" ||
is_absolute "$TEST_SRCDIR" || TEST_SRCDIR="$PWD/$TEST_SRCDIR"
is_absolute "$TEST_TMPDIR" || TEST_TMPDIR="$PWD/$TEST_TMPDIR"
+is_absolute "$HOME" || HOME="$PWD/$TEST_TMPDIR"
is_absolute "$XML_OUTPUT_FILE" || XML_OUTPUT_FILE="$PWD/$XML_OUTPUT_FILE"
# Set USER to the current user, unless passed by Bazel via --test_env.