From 3d0175d10e1114aaf94255c09f6d9ad45a333255 Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Thu, 3 Oct 2024 20:42:25 +0200 Subject: [PATCH] ZTS: Fix summary page creation There are cases, where some needed files for the summary page aren't created. Currently the whole Summary Page creation will fail then. Sample run: https://github.com/openzfs/zfs/actions/runs/11148248072/job/30999748588 Fix this, by properly checking for existence of the needed files. Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Tino Reichardt Closes #16599 --- .github/workflows/scripts/qemu-9-summary-page.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/scripts/qemu-9-summary-page.sh b/.github/workflows/scripts/qemu-9-summary-page.sh index 2f4c21f99..cae287ac1 100755 --- a/.github/workflows/scripts/qemu-9-summary-page.sh +++ b/.github/workflows/scripts/qemu-9-summary-page.sh @@ -11,10 +11,12 @@ function output() { } function outfile() { + test -s "$1" || return cat "$1" >> "out-$logfile.md" } function outfile_plain() { + test -s "$1" || return output "
"
   cat "$1" >> "out-$logfile.md"
   output "
"