From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: dev-next - tests: remove more file in teardonw
Date: Wed, 31 Mar 2021 21:49:05 +0000 (GMT) [thread overview]
Message-ID: <20210331214905.440503858C27@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a126dde069ada9380ba2f7ab7e520ba4ce3e2a90
Commit: a126dde069ada9380ba2f7ab7e520ba4ce3e2a90
Parent: 18f2475fa18bfe8b08af830bb8335d41928206fe
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Wed Mar 24 00:39:01 2021 +0100
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Mar 24 12:23:07 2021 +0100
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.
---
test/lib/aux.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index 08eeac55b..f81d03e88 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -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"
}
reply other threads:[~2021-03-31 21:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210331214905.440503858C27@sourceware.org \
--to=teigland@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.