diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-28 11:10:08 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-28 11:10:08 +0000 |
commit | a59c3731c3f68561b1b9aa015d59155976c7a6a3 (patch) | |
tree | 8a19c221b29f6c4df02442db518088c4406e6659 /test/shell/lvcreate-operation.sh | |
parent | 9e072e70723544190b5fbfbfae9e6683fcf5f644 (diff) | |
download | lvm2-a59c3731c3f68561b1b9aa015d59155976c7a6a3.tar.gz lvm2-a59c3731c3f68561b1b9aa015d59155976c7a6a3.tar.xz lvm2-a59c3731c3f68561b1b9aa015d59155976c7a6a3.zip |
Improve test suite
Add make help target.
Add LVM_TEST_PARALLEL to support parallel runs of tests
Work around the problem the dmsetup table/info may return error
by using dmtable and dminfo function that will use 'should'.
(Error happens when some concurently running process removes table
entry while dmsetup command resolves table entries inside the loop.)
Diffstat (limited to 'test/shell/lvcreate-operation.sh')
-rw-r--r-- | test/shell/lvcreate-operation.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/shell/lvcreate-operation.sh b/test/shell/lvcreate-operation.sh index c3d8c65a..0ef31384 100644 --- a/test/shell/lvcreate-operation.sh +++ b/test/shell/lvcreate-operation.sh @@ -15,10 +15,8 @@ cleanup_lvs() { lvremove -ff $vg - if dmsetup table|grep $vg; then - echo "ERROR: lvremove did leave some some mappings in DM behind!" - return 1 - fi + (dm_table | not grep $vg) || \ + die "ERROR: lvremove did leave some some mappings in DM behind!" } aux prepare_pvs 2 |