diff --git a/tests/mountable/test-mountable-inspect.sh b/tests/mountable/test-mountable-inspect.sh index 60db6cbea..7bbc6f138 100755 --- a/tests/mountable/test-mountable-inspect.sh +++ b/tests/mountable/test-mountable-inspect.sh @@ -25,41 +25,44 @@ skip_unless_feature_available btrfs canonical="sed s,/dev/vd,/dev/sd,g" -rm -f root.tmp test.qcow2 test.output +root=mountable-inspect.tmp +output=mountable-inspect.output +overlay=mountable-inspect.qcow2 +rm -f $root $overlay $output # Start with the regular (good) fedora image, modify /etc/fstab # and then inspect it. guestfish -- \ - disk-create test.qcow2 qcow2 -1 \ + disk-create $overlay qcow2 -1 \ backingfile:../test-data/phony-guests/fedora-btrfs.img backingformat:raw # Test that basic inspection works and the expected filesystems are # found -guestfish --format=qcow2 -a test.qcow2 -i <<'EOF' | sort | $canonical > test.output - inspect-get-roots | head -1 > root.tmp - $output + inspect-get-roots | head -1 > $root + test.output - inspect-get-roots | head -1 > root.tmp - $output + inspect-get-roots | head -1 > $root + test.output < $output < test.output < $output <