summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2011-06-04 21:55:25 +0000
committerPetr Rockai <prockai@redhat.com>2011-06-04 21:55:25 +0000
commitf221800b25466e736a8a1e631d2c6959c5d50ec9 (patch)
tree3740f79401751e25b5a66f79106a22c4cc114a8a
parentf7a80fd8e36542a3a209114cde462db35debe638 (diff)
downloadlvm2-f221800b25466e736a8a1e631d2c6959c5d50ec9.tar.gz
lvm2-f221800b25466e736a8a1e631d2c6959c5d50ec9.tar.xz
lvm2-f221800b25466e736a8a1e631d2c6959c5d50ec9.zip
Also check in the pe_start API test that the disks have not been touched.
-rw-r--r--test/api/pe_start.c6
-rw-r--r--test/api/pe_start.sh4
2 files changed, 6 insertions, 4 deletions
diff --git a/test/api/pe_start.c b/test/api/pe_start.c
index 5bd02d5d..129f8a2d 100644
--- a/test/api/pe_start.c
+++ b/test/api/pe_start.c
@@ -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");
diff --git a/test/api/pe_start.sh b/test/api/pe_start.sh
index 6b50aa44..ecd90af1 100644
--- a/test/api/pe_start.sh
+++ b/test/api/pe_start.sh
@@ -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