Skip to content

Commit

Permalink
show exit code of fai-diskimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 11, 2024
1 parent 463d151 commit 769ad4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion debian/tests/diskimage
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Depends fai-setup-storage
# apt -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 install fai-setup-storage

set -e
#set -e

. ./debian/tests/common.sh
cd "$AUTOPKGTEST_TMP"
Expand Down Expand Up @@ -39,6 +39,7 @@ echo "=== creating and testing legacy bios diskimage ==="

cl="DEBIAN,AMD64,FAIBASE,GRUB_PC,DHCPC,DEMO,CLOUD,LAST"
LC_ALL=C fai-diskimage -vu cloud3 -S2G -c$cl cloud.raw >& diskimage.log
echo fai-diskimage return code $?

# test the results of the commands called
chk-size cloud.raw 860
Expand All @@ -64,6 +65,7 @@ echo "=== creating and testing EFI diskimage ==="
# now create a diskimage using EFI
cl="DEBIAN,AMD64,FAIBASE,GRUB_EFI,DHCPC,DEMO,CLOUD,CLOUD_EFI,LAST"
LC_ALL=C fai-diskimage -vu cloud4 -S2G -c$cl cloud-efi.raw >& diskimage-efi.log
echo fai-diskimage return code $?

chk-size cloud-efi.raw 890
mount -oloop,offset=1048576 cloud-efi.raw /mnt
Expand Down

0 comments on commit 769ad4d

Please sign in to comment.