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-06-29 20:19:13 +0100 |
commit | 5489304c8d2836713ec58051c24514eba22b8c94 (patch) | |
tree | 2db0a43e61f67338ffa47e9eee560693780a4857 /tests | |
parent | 339f3647f889424af2a2256c4fcad0b44982c275 (diff) | |
download | libguestfs-5489304c8d2836713ec58051c24514eba22b8c94.tar.gz libguestfs-5489304c8d2836713ec58051c24514eba22b8c94.tar.xz libguestfs-5489304c8d2836713ec58051c24514eba22b8c94.zip |
tests: Add a test of /dev/disk/by-id paths (RHBZ#627675).
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" |