mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: remove more file in teardonw
Our tests may result in producation of huge set of invalid links in /dev/disk directory depeding on version of udev and various kinds of failures. Also we happen to invoke some on-system pvscans generating local /etc/lvm/archive & backups - remove them when test is finished.
This commit is contained in:
parent
18f2475fa1
commit
a126dde069
@ -580,6 +580,12 @@ teardown() {
|
||||
rm -rf "${TESTDIR:?}" || echo BLA
|
||||
}
|
||||
|
||||
# Remove any dangling symlink in /dev/disk (our tests can confuse udev)
|
||||
find /dev/disk -type l ! -exec test -e {} \; -print | xargs rm -f
|
||||
|
||||
# Remove any metadata archives and backups from this test on system
|
||||
rm -f /etc/lvm/archive/${PREFIX}* /etc/lvm/backup/${PREFIX}*
|
||||
|
||||
echo "ok"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user