]> sourceware.org Git - lvm2.git/commitdiff
Also check in the pe_start API test that the disks have not been touched.
authorPetr Rockai <prokai@redhat.com>
Sat, 4 Jun 2011 21:55:25 +0000 (21:55 +0000)
committerPetr Rockai <prokai@redhat.com>
Sat, 4 Jun 2011 21:55:25 +0000 (21:55 +0000)
test/api/pe_start.c
test/api/pe_start.sh

index 5bd02d5d72feb5c8f1b7abf4f38ffaeecc4112d9..129f8a2dc54d26da5209b280f1ae6ff9c890634a 100644 (file)
@@ -27,13 +27,13 @@ int main(int argc, char *argv[])
        handle = lvm_init(NULL);
         assert(handle);
 
-       vg = lvm_vg_create(handle, "test_vg");
+       vg = lvm_vg_create(handle, argv[1]);
         assert(vg);
 
-       if (lvm_vg_extend(vg, argv[1]))
+       if (lvm_vg_extend(vg, argv[2]))
                abort();
 
-       pv = lvm_pv_from_name(vg, argv[1]);
+       pv = lvm_pv_from_name(vg, argv[2]);
        assert(pv);
 
         v = lvm_pv_get_property(pv, "pe_start");
index 6b50aa44c466a8b92e941ac06998deb4b82af4d8..ecd90af1c27a3b74a548146dee2a4ef906d922b7 100644 (file)
@@ -14,4 +14,6 @@
 . lib/test
 
 aux prepare_devs 2
-aux apitest pe_start $dev1
+aux apitest pe_start test_vg $dev1
+not vgs test_vg
+not pvs $dev1
This page took 0.043028 seconds and 5 git commands to generate.