xfstests: Provide dumpe2fs via standard common.config interface

dumpe2fs can be now accessed via $DUMPE2FS_PROG, tests that require it
can check for its availability by _require_dumpe2fs function.

Signed-off-by: Tomas Racek <tracek@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Tomas Racek
2013-02-03 10:19:56 +00:00
committed by Rich Johnston
parent 82066d2960
commit 03b0089e9b
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -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
+7
View File
@@ -1826,6 +1826,13 @@ _test_batched_discard()
$FSTRIM_PROG ${1} &>/dev/null
}
_require_dumpe2fs()
{
if [ -z "$DUMPE2FS_PROG" ]; then
_notrun "This test requires dumpe2fs utility."
fi
}
################################################################################
if [ "$iam" != new -a "$iam" != bench ]