diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-29 18:03:02 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-06 17:36:30 +0100 |
commit | acf5144d39c647a65466f1664c75c5f97a50330d (patch) | |
tree | 49934d5741e0a4431c918896da8e706141534f07 /tests | |
parent | 4fa27e55fa5024684e4ac98369ebbb5775edd9f4 (diff) | |
download | libguestfs-acf5144d39c647a65466f1664c75c5f97a50330d.tar.gz libguestfs-acf5144d39c647a65466f1664c75c5f97a50330d.tar.xz libguestfs-acf5144d39c647a65466f1664c75c5f97a50330d.zip |
tests: Add a test of /dev/disk/by-id paths (RHBZ#627675).
(cherry picked from commit 5489304c8d2836713ec58051c24514eba22b8c94)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/md/test-inspect-fstab.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/md/test-inspect-fstab.sh b/tests/md/test-inspect-fstab.sh index abb20f4a..2822c4d7 100755 --- a/tests/md/test-inspect-fstab.sh +++ b/tests/md/test-inspect-fstab.sh @@ -42,6 +42,11 @@ cat <<'EOF' > test.fstab # Non-existent mountpoint. /dev/VG/LV1 /nosuchfile ext2 default 0 0 + +# /dev/disk/by-id path (RHBZ#627675). +/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 /id ext2 default 0 0 +/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 /id1 ext2 default 0 0 +/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 /id3 ext2 default 0 0 EOF $guestfish -a test1.qcow2 <<'EOF' @@ -57,6 +62,9 @@ EOF if [ "$(cat test.output)" != "/: /dev/VG/Root /boot: /dev/sda1 +/id1: /dev/sda1 +/id3: /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 +/id: /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 /nosuchfile: /dev/VG/LV1 /var: /dev/sdb3" ]; then echo "$0: error #1: unexpected output from inspect-get-mountpoints command" |