]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: script: also add a line pointing to the log file
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Jun 2025 12:33:09 +0000 (14:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jun 2025 12:33:09 +0000 (14:33 +0200)
I never counted the number of hours I've been spending selecting then
copy-pasting the directory output and manually appending "/LOG" to read
a log file but it amounts in tens to hundreds. Let's just add a direct
pointer to the log file at the end of the log for a failed run.

scripts/run-regtests.sh

index 7e185e5c6c5eb37a952157014ed5d86c49cf8c60..912ac94f04e6bf771b4edca88b4f0a33742972cb 100755 (executable)
@@ -399,6 +399,7 @@ if [ -d "${TESTDIR}" ]; then
     cat <<- EOF | tee -a "$TESTDIR/failedtests.log"
 $(echo "###### $(cat "$i/INFO") ######")
 $(echo "## test results in: \"$i\"")
+$(echo "## test log file: $i/LOG")
 $(grep -E -- "^(----|\*    diag)" "$i/LOG")
 EOF
   done' sh {} +