diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-12-11 10:18:44 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-12-11 23:24:19 +0100 |
commit | bcf59a1b185c07a3f7e10f9de13e83501f9a852b (patch) | |
tree | 44a9c884785291104979ea3206bf9fe8416bac6e /test/api | |
parent | 198f335139f7a538272c8cb6657ad4f5d58b01db (diff) | |
download | lvm2-bcf59a1b185c07a3f7e10f9de13e83501f9a852b.tar.gz |
tests: test should clean devices it has created
To be able to detect lvm2 command is not leaking some
'unexpected' device - remove all devices before
test exits by its own command so test teardown
now can check what was 'left' unexpectedly.
Diffstat (limited to 'test/api')
-rw-r--r-- | test/api/lvtest.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/api/lvtest.sh b/test/api/lvtest.sh index f34f0f824..8cba14cd8 100644 --- a/test/api/lvtest.sh +++ b/test/api/lvtest.sh @@ -21,3 +21,5 @@ lvcreate -n test -l 5 $vg aux apitest lvtest $vg check lv_field $vg/test lv_name test + +vgremove -ff $vg |