mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <amir73il@gmail.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
e1a49994e5
commit
8a8a4b95b2
+2
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user