lvm-devel.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* main - tests: different check for mounted volume
@ 2023-05-06 20:46 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2023-05-06 20:46 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4af8063c963f0610761d9cecbd6ed23b52f77256
Commit:        4af8063c963f0610761d9cecbd6ed23b52f77256
Parent:        2fde4b6baa09f33890d4a5b951dc51b81828ef63
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sat May 6 19:39:25 2023 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Sat May 6 22:43:22 2023 +0200

tests: different check for mounted volume

It appears newer mount allows repeated mounting ??
Anyway - do the check with grep.
---
 test/shell/lvconvert-thin-external-cache.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/shell/lvconvert-thin-external-cache.sh b/test/shell/lvconvert-thin-external-cache.sh
index 465ce52ad..a8b95b274 100644
--- a/test/shell/lvconvert-thin-external-cache.sh
+++ b/test/shell/lvconvert-thin-external-cache.sh
@@ -51,7 +51,7 @@ not lvconvert --thin --thinpool $vg/tpool $vg/$lv1
 lvchange --cachemode writethrough $vg/$lv1
 
 # Check $lv1 remains mounted (so it's not been unmounted by systemd)
-not mount "$DM_DEV_DIR/$vg/$lv1" mnt
+mountpoint "$PWD/mnt"
 
 lvconvert --thin $vg/$lv1 --originname extorg --thinpool $vg/tpool
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-06 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-06 20:46 main - tests: different check for mounted volume Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).