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 <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
cd /
echo "*** cleaning up"
$timmutable -r $SCRATCH_MNT/$seq
cd /
echo "*** cleaning up"
$timmutable -r $SCRATCH_MNT/$seq
}
# get standard environment, filters and checks
}
# get standard environment, filters and checks
_supported_fs generic
_supported_os Linux
_supported_fs generic
_supported_os Linux
+_require_chattr ia
+_require_test_program "t_immutable"
-[ -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"
# real QA test starts here
_scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed"
_scratch_mount || _fail "mount failed"