summaryrefslogtreecommitdiff
path: root/ci/print-test-failures.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-01-18 10:22:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2024-01-18 19:53:17 (GMT)
commit99c60edc5b83cb624b30b8f459da78c250c63f87 (patch)
tree8f43acbba4a4946d40174b67868b910dc975ad3e /ci/print-test-failures.sh
parentd52b426ad4b038e09421c2e3a3c991832e1eec97 (diff)
downloadgit-99c60edc5b83cb624b30b8f459da78c250c63f87.zip
git-99c60edc5b83cb624b30b8f459da78c250c63f87.tar.gz
git-99c60edc5b83cb624b30b8f459da78c250c63f87.tar.bz2
ci: handle TEST_OUTPUT_DIRECTORY when printing test failures
The TEST_OUTPUT_DIRECTORY environment variable can be used to instruct the test suite to write test data and test results into a different location than into "t/". The "ci/print-test-failures.sh" script does not know to handle this environment variable though, which means that it will search for test results in the wrong location if it was set. Update the script to handle TEST_OUTPUT_DIRECTORY so that we can start to set it in our CI. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/print-test-failures.sh')
-rwxr-xr-xci/print-test-failures.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/print-test-failures.sh b/ci/print-test-failures.sh
index c33ad4e..b1f80ae 100755
--- a/ci/print-test-failures.sh
+++ b/ci/print-test-failures.sh
@@ -8,7 +8,7 @@
# Tracing executed commands would produce too much noise in the loop below.
set +x
-cd t/
+cd "${TEST_OUTPUT_DIRECTORY:-t/}"
if ! ls test-results/*.exit >/dev/null 2>/dev/null
then