1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

tests: no left devices check for skipped test

This commit is contained in:
Zdenek Kabelac 2016-12-12 11:22:10 +01:00
parent 48d33e5fb6
commit 8c9c6ab660

View File

@ -520,7 +520,10 @@ teardown() {
if test -f TESTNAME ; then
TEST_LEAKED_DEVICES=$(dmsetup table | grep "$PREFIX" | grep -v "${PREFIX}pv") || true
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
fi
kill_tagged_processes