From: Amir Goldstein Date: Thu, 6 Apr 2017 05:49:19 +0000 (+0300) Subject: generic/079: use _require_test_program X-Git-Tag: v2022.05.01~2102 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a8a4b95b25c74df9a392428a4e031621c145bda;p=xfstests-dev.git generic/079: use _require_test_program use _require_test_program helper and specify both +i and +a to _required_chattr, because test sets them both. Also remove unneeded _scratch_unmount from _cleanup. Signed-off-by: Amir Goldstein Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/generic/079 b/tests/generic/079 index 5cceeba0..c2db6bf1 100755 --- a/tests/generic/079 +++ b/tests/generic/079 @@ -37,7 +37,6 @@ _cleanup() cd / echo "*** cleaning up" $timmutable -r $SCRATCH_MNT/$seq - _scratch_unmount } # get standard environment, filters and checks @@ -48,11 +47,10 @@ _cleanup() _supported_fs generic _supported_os Linux -_require_chattr i +_require_chattr ia +_require_test_program "t_immutable" _require_scratch -[ -x $timmutable ] || _notrun "t_immutable was not built for this platform" - # real QA test starts here _scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed" _scratch_mount || _fail "mount failed"