Skip to content

Commit 1b512ad

Browse files
committed
fixup! tests: include detailed trace logs with --write-junit-xml upon failure
Let's use the new `test-tool path-utils file-size` command in the new JUnit XML feature. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 898de19 commit 1b512ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/test-lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ write_junit_xml_testcase () {
902902
junit_have_testcase=t
903903
if test -n "$GIT_TEST_TEE_OUTPUT_FILE"
904904
then
905-
GIT_TEST_TEE_OFFSET=$(perl -e 'print -s $ARGV[0]' "$GIT_TEST_TEE_OUTPUT_FILE")
905+
GIT_TEST_TEE_OFFSET=$(test-tool path-utils file-size \
906+
"$GIT_TEST_TEE_OUTPUT_FILE")
906907
fi
907908
}
908909

0 commit comments

Comments
 (0)