Skip to content

Commit 99c60ed

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d52b426 commit 99c60ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/print-test-failures.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Tracing executed commands would produce too much noise in the loop below.
99
set +x
1010

11-
cd t/
11+
cd "${TEST_OUTPUT_DIRECTORY:-t/}"
1212

1313
if ! ls test-results/*.exit >/dev/null 2>/dev/null
1414
then

0 commit comments

Comments
 (0)