mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/195: Use XFSDUMP_PROG instead of xfsdump directly
Use appropriate environment variable (XFSDUMP_PROG) instead of hardcoding 'xfsdump' name. Also make the test fail graciously when xfsdump isn't installed. We also make XFSDUMP_PROG be equal to empty string instead of -e when xfsdump isn't installed. The changes require some tweaking to output filtering since full command path now appears in the output. Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
+5
-1
@@ -163,7 +163,11 @@ export XFS_IO_PROG="`set_prog_path xfs_io`"
|
||||
export XFS_PARALLEL_REPAIR_PROG="`set_prog_path xfs_prepair`"
|
||||
export XFS_PARALLEL_REPAIR64_PROG="`set_prog_path xfs_prepair64`"
|
||||
export __XFSDUMP_PROG="`set_prog_path xfsdump`"
|
||||
export XFSDUMP_PROG="$__XFSDUMP_PROG -e"
|
||||
if [ -n "$__XFSDUMP_PROG" ]; then
|
||||
export XFSDUMP_PROG="$__XFSDUMP_PROG -e"
|
||||
else
|
||||
export XFSDUMP_PROG=""
|
||||
fi
|
||||
export XFSRESTORE_PROG="`set_prog_path xfsrestore`"
|
||||
export XFSINVUTIL_PROG="`set_prog_path xfsinvutil`"
|
||||
export GETFATTR_PROG="`set_prog_path getfattr`"
|
||||
|
||||
Reference in New Issue
Block a user