All of lore.kernel.org
 help / color / mirror / Atom feed
* master - tests: filefrag needs to support -e
@ 2020-09-01 17:01 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-09-01 17:01 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2fbc578cfa0bde161b7583978537d2023e5d6e0c
Commit:        2fbc578cfa0bde161b7583978537d2023e5d6e0c
Parent:        ef389603ddd1239c79f688bac0bb7b27a568df6e
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sat Aug 29 15:33:57 2020 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Sep 1 17:57:48 2020 +0200

tests: filefrag needs to support -e

Skip on systems with 'too old' filefrag without -e support
---
 test/shell/lvm-conf-error.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/shell/lvm-conf-error.sh b/test/shell/lvm-conf-error.sh
index 17b7dad97..01461c174 100644
--- a/test/shell/lvm-conf-error.sh
+++ b/test/shell/lvm-conf-error.sh
@@ -29,9 +29,11 @@ mount "$DM_DEV_DIR/$vg/$lv1" mnt
 cp etc/lvm.conf mnt
 
 # Figure where the file is placed in filesystem
-filefrag -e mnt/lvm.conf | tee frags
+filefrag -e mnt/lvm.conf | tee frags || rm -f frags
 umount mnt
 
+test -s frags || skip
+
 # 1st. sector for filesystem
 first_extent_sector=$(get first_extent_sector "$dev1")
 



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

only message in thread, other threads:[~2020-09-01 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-01 17:01 master - tests: filefrag needs to support -e Zdenek Kabelac

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.