mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
ZTS: Fix Test Summary page generation
Fix that error: "cat /tmp/failed.txt: No such file or directory" Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #16549
This commit is contained in:
committed by
Brian Behlendorf
parent
01852ffbf8
commit
7a965b9bc8
@@ -35,15 +35,12 @@ EOF
|
||||
cat /tmp/summary.txt
|
||||
echo ""
|
||||
|
||||
if [ -e /tmp/have_failed_tests ]; then
|
||||
RV=1
|
||||
if [ -f /tmp/have_failed_tests -a -s /tmp/failed.txt ]; then
|
||||
echo "Debuginfo of failed tests:"
|
||||
cat /tmp/failed.txt
|
||||
echo ""
|
||||
cat /tmp/summary.txt | grep -v '^/'
|
||||
echo ""
|
||||
else
|
||||
RV=0
|
||||
fi
|
||||
|
||||
echo -e "\nFull logs for download:\n $1\n"
|
||||
@@ -70,4 +67,5 @@ for i in $(seq 1 $VMs); do
|
||||
test -s "$file" && showfile "$file" "$vm: failure logfile"
|
||||
done
|
||||
|
||||
exit $RV
|
||||
test -f /tmp/have_failed_tests && exit 1
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user