From 2fbc578cfa0bde161b7583978537d2023e5d6e0c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 29 Aug 2020 15:33:57 +0200 Subject: [PATCH] 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")