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:27:03 +0100
commit1e669ab315c32aba3f47c37771f26ab7c8e151dd (patch)
tree9d907c4d3a68d4433403fb32f61b9cb73560b60d
parent7474440d3b540d20eb4f997efeb31b881cc6ac8e (diff)
downloadlvm2-1e669ab315c32aba3f47c37771f26ab7c8e151dd.tar.gz
test: Fix handling leftovers from previous tests
teardown fails current PREFIX is prefix of previously failed test with leftovers in dmtable.
-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 6822d7e3e..566e9b52e 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -520,7 +520,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