Skip to content

Commit

Permalink
optionally use two bigger disks for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jan 25, 2024
1 parent c5781a8 commit 691cfe7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/runtest
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ echo "Downloading image"
[ ! -e /tmp/libvirt.box ] && curl -L -s $IMAGE > /tmp/libvirt.box
[ ! -e /tmp/box.img ] && tar -zxvf /tmp/libvirt.box box.img
mv -f box.img /tmp/disk1.qcow2
[ ! -e /tmp/disk2.qcow2 ] && qemu-img create -f qcow2 /tmp/disk2.qcow2 10M
if [ -n "${DEBUG_BIG}" ]; then
echo "two big disks"
cp /tmp/disk1.qcow2 /tmp/disk2.qcow2
else
[ ! -e /tmp/disk2.qcow2 ] && qemu-img create -f qcow2 /tmp/disk2.qcow2 10M
fi
[ ! -e /tmp/disk3.raw ] && qemu-img create -f raw /tmp/disk3.raw 10M

echo "Starting qemu process"
Expand Down

0 comments on commit 691cfe7

Please sign in to comment.