diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-11 16:20:25 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-11 16:56:11 +0000 |
commit | 4d900cdac8258daa2e99c6ceb2a4985154e94150 (patch) | |
tree | 3405a12423aaadc9f31fbd0d467ebf0ba92d32ca /tools/test-virt-list-filesystems.sh | |
parent | 4d59e271046f2b5f0d9b1730cd23425fd631c76c (diff) | |
download | libguestfs-4d900cdac8258daa2e99c6ceb2a4985154e94150.tar.gz libguestfs-4d900cdac8258daa2e99c6ceb2a4985154e94150.tar.xz libguestfs-4d900cdac8258daa2e99c6ceb2a4985154e94150.zip |
Generate a dummy 'Fedora' fedora.img in images directory for use by tests.
We were generating this dummy 'Fedora' image already in the
tools directory. It contains just enough Fedora-like files
to fool our inspection code and thus to test the tools.
This is general enough that we can use it everywhere.
Diffstat (limited to 'tools/test-virt-list-filesystems.sh')
-rwxr-xr-x | tools/test-virt-list-filesystems.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/test-virt-list-filesystems.sh b/tools/test-virt-list-filesystems.sh index 5fd4b08a..bd4e4e70 100755 --- a/tools/test-virt-list-filesystems.sh +++ b/tools/test-virt-list-filesystems.sh @@ -5,7 +5,8 @@ set -e # Run virt-list-filesystems. # Only columns 1 & 2 are guaranteed, we may add more in future. -if [ "$(./virt-list-filesystems -l test.img | sort | awk '{print $1 $2}')" \ +if [ "$(./virt-list-filesystems -l ../images/fedora.img | + sort | awk '{print $1 $2}')" \ != \ "/dev/VG/LV1ext2 /dev/VG/LV2ext2 |