From: Matthias Bolte Date: Fri, 23 Jul 2010 16:43:37 +0000 (+0200) Subject: virt-aa-helper-test: Fix failure due to the new disk format probing option X-Git-Tag: v0.8.3~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f86eaca4900b9788bf7d877770ac15adf948738;p=thirdparty%2Flibvirt.git virt-aa-helper-test: Fix failure due to the new disk format probing option Commit 68719c4bddb85fbcc931a5b7d99ac7c8a0af09b0 added the disk format probing option. This makes virt-aa-helper-test fail because the domain config didn't specifiy the disk format and it didn't pass '-p 1' to virt-aa-helper to allow disk format probing. Specify the disk format in the domain config. Pass the '-p 1' option to virt-aa-helper for the test case with two disks. This way this test also covers this new option. --- diff --git a/tests/virt-aa-helper-test b/tests/virt-aa-helper-test index ada89f4d35..6c97aafb7f 100755 --- a/tests/virt-aa-helper-test +++ b/tests/virt-aa-helper-test @@ -76,6 +76,7 @@ cat > "$template_xml" < /usr/bin/kvm + @@ -195,7 +196,7 @@ cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | testme "0" "create (ppc)" "-c -u $valid_uuid" "$test_xml" cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###,$disk1,g" | sed "s,,,g" > "$test_xml" -testme "0" "create multiple disks" "-c -u $valid_uuid" "$test_xml" +testme "0" "create multiple disks" "-c -u $valid_uuid -p 1" "$test_xml" cat "$template_xml" | sed "s,###UUID###,$uuid,g" | sed "s,###DISK###',${disk1}'/> "$test_xml" testme "0" "create (readonly)" "-c -u $valid_uuid" "$test_xml"