Skip to content

Commit 339d95f

Browse files
committed
ci: allow github-actions print test failures again
eab5dba (ci: wire up Meson builds, 2024-12-13) added two instances of a very similar construct FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:-t}/failed-test-artifacts one to ci/lib.sh and the other to ci/print-test-failures.sh Unfortunately, the latter had a typo causing shell to emit "Bad substitution". Fix it. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 16bd9f2 commit 339d95f

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
@@ -41,7 +41,7 @@ do
4141
case "$CI_TYPE" in
4242
github-actions)
4343
mkdir -p failed-test-artifacts
44-
echo "FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:t}/failed-test-artifacts" >>$GITHUB_ENV
44+
echo "FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:-t}/failed-test-artifacts" >>$GITHUB_ENV
4545
cp "${TEST_EXIT%.exit}.out" failed-test-artifacts/
4646
tar czf failed-test-artifacts/"$test_name".trash.tar.gz "$trash_dir"
4747
continue

0 commit comments

Comments
 (0)