dumpe2fs can be now accessed via $DUMPE2FS, tests that require it can
check for its availability by _require_dumpe2fs function.
Signed-off-by: Tomas Racek <tracek@xxxxxxxxxx>
---
common.config | 1 +
common.rc | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/common.config b/common.config
index 57f505d..7174127 100644
--- a/common.config
+++ b/common.config
@@ -159,6 +159,7 @@ export KILLALL_PROG="`set_prog_path killall`"
export INDENT_PROG="`set_prog_path indent`"
export XFS_COPY_PROG="`set_prog_path xfs_copy`"
export FSTRIM_PROG="`set_prog_path fstrim`"
+export DUMPE2FS_PROG="`set_prog_path dumpe2fs`"
# Generate a comparable xfsprogs version number in the form of
# major * 10000 + minor * 100 + release
diff --git a/common.rc b/common.rc
index b5edd22..6d2d5b9 100644
--- a/common.rc
+++ b/common.rc
@@ -1804,6 +1804,13 @@ _test_batched_discard()
$FSTRIM_PROG ${1} &>/dev/null
}
+_require_dumpe2fs()
+{
+ if [ -z "$DUMPE2FS_PROG" ]; then
+ _notrun "This test requires dumpe2fs utility."
+ fi
+}
+
_create_loop_device()
{
file=$1
--
1.7.11.7
|