From: Darrick J. Wong Date: Wed, 1 Nov 2017 21:47:11 +0000 (-0700) Subject: generic/459: explicitly require thin_check X-Git-Tag: v2022.05.01~1802 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a9006d7c6227aff2742df66c3b6df3985ff8d389;p=users%2Fhch%2Fxfstests-dev.git generic/459: explicitly require thin_check The lvm command can invoke the thin pool utilities as part of managing a thin volume. It'll fail if the thin provisioning utilities are not installed, so we need to check for its presence before running a test. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/config b/common/config index 96503c67a..4b3402e67 100644 --- a/common/config +++ b/common/config @@ -196,6 +196,7 @@ export MAN_PROG="`set_prog_path man`" export NFS4_SETFACL_PROG="`set_prog_path nfs4_setfacl`" export NFS4_GETFACL_PROG="`set_prog_path nfs4_getfacl`" export UBIUPDATEVOL_PROG="`set_prog_path ubiupdatevol`" +export THIN_CHECK_PROG="$(set_prog_path thin_check)" # use 'udevadm settle' or 'udevsettle' to wait for lv to be settled. # newer systems have udevadm command but older systems like RHEL5 don't. diff --git a/tests/generic/459 b/tests/generic/459 index 7c10c2ab0..d1ad37208 100755 --- a/tests/generic/459 +++ b/tests/generic/459 @@ -63,6 +63,7 @@ _supported_os Linux _require_scratch_nocheck _require_dm_target thin-pool _require_command $LVM_PROG lvm +_require_command "$THIN_CHECK_PROG" thin_check _require_freeze # remove previous $seqres.full before test