summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2019-11-20 15:23:48 +0100
committerMarian Csontos <mcsontos@redhat.com>2019-11-20 15:31:21 +0100
commit61c321d110630d4fc2ed8f75cb3a9ba78e29599b (patch)
treec67eeea0a9684b58312a22de0f85af9852958552
parent26f94d91195531730c22eac26c741f1b4d2e0f1e (diff)
downloadlvm2-61c321d110630d4fc2ed8f75cb3a9ba78e29599b.tar.gz
test: Fix handling leftovers from previous tests
teardown fails current PREFIX is prefix of previously failed test with leftovers in dmtable. (cherry picked from commit 1e669ab315c32aba3f47c37771f26ab7c8e151dd)
-rw-r--r--test/lib/aux.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index 224106213..ec0699f88 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -568,7 +568,7 @@ teardown() {
if test ! -f SKIP_THIS_TEST ; then
# Evaluate left devices only for non-skipped tests
- TEST_LEAKED_DEVICES=$(dmsetup table | grep "$PREFIX" | grep -v "${PREFIX}pv") || true
+ TEST_LEAKED_DEVICES=$(dmsetup table | grep "$PREFIX" | grep -Ev "${PREFIX}(pv|[0-9])") || true
fi
kill_tagged_processes