git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
images: Make a better phony Fedora image.
[libguestfs.git]
/
tools
/
test-virt-df.sh
diff --git
a/tools/test-virt-df.sh
b/tools/test-virt-df.sh
index
a7b50b8
..
6878327
100755
(executable)
--- a/
tools/test-virt-df.sh
+++ b/
tools/test-virt-df.sh
@@
-4,7
+4,7
@@
export LANG=C
set -e
# Run virt-df.
set -e
# Run virt-df.
-output=$(./virt-df
test
.img)
+output=$(./virt-df
../images/fedora
.img)
# Check title is the first line.
if [[ ! $output =~ ^Filesystem.* ]]; then
# Check title is the first line.
if [[ ! $output =~ ^Filesystem.* ]]; then
@@
-19,25
+19,25
@@
if [ $(echo "$output" | wc -l) -ne 6 ]; then
fi
# Check /dev/VG/LV[1-3] and /dev/VG/Root were found.
fi
# Check /dev/VG/LV[1-3] and /dev/VG/Root were found.
-if [[ ! $output =~
test
.img:/dev/VG/LV1 ]]; then
+if [[ ! $output =~
fedora
.img:/dev/VG/LV1 ]]; then
echo "$0: error: filesystem /dev/VG/LV1 was not found"
exit 1
fi
echo "$0: error: filesystem /dev/VG/LV1 was not found"
exit 1
fi
-if [[ ! $output =~
test
.img:/dev/VG/LV2 ]]; then
+if [[ ! $output =~
fedora
.img:/dev/VG/LV2 ]]; then
echo "$0: error: filesystem /dev/VG/LV2 was not found"
exit 1
fi
echo "$0: error: filesystem /dev/VG/LV2 was not found"
exit 1
fi
-if [[ ! $output =~
test
.img:/dev/VG/LV3 ]]; then
+if [[ ! $output =~
fedora
.img:/dev/VG/LV3 ]]; then
echo "$0: error: filesystem /dev/VG/LV3 was not found"
exit 1
fi
echo "$0: error: filesystem /dev/VG/LV3 was not found"
exit 1
fi
-if [[ ! $output =~
test
.img:/dev/VG/Root ]]; then
+if [[ ! $output =~
fedora
.img:/dev/VG/Root ]]; then
echo "$0: error: filesystem /dev/VG/Root was not found"
exit 1
fi
# Check /dev/sda1 was found. Might be called /dev/vda1.
echo "$0: error: filesystem /dev/VG/Root was not found"
exit 1
fi
# Check /dev/sda1 was found. Might be called /dev/vda1.
-if [[ ! $output =~
test
.img:/dev/[hsv]da1 ]]; then
+if [[ ! $output =~
fedora
.img:/dev/[hsv]da1 ]]; then
echo "$0: error: filesystem /dev/VG/sda1 was not found"
exit 1
fi
echo "$0: error: filesystem /dev/VG/sda1 was not found"
exit 1
fi