overlay/081: add missing _require_scratch_nocheck check
PATCH 1/1 overlay/081: add missing _require_scratch_nocheck check
The test runs _scratch_mkfs without first requiring a scratch device, so it fails messily instead of skipping when no scratch device is configured. Use _require_scratch_nocheck like the neighbouring tests overlay/079 and overlay/080, as the test mounts overlay on the base scratch fs.
--- tests/overlay/081 | 3 +++ 1 file changed, 3 insertions(+)
tests/overlay/081 +3 -0
@@ -14,6 +14,9 @@ _begin_fstest auto quick . ./common/filter . ./common/attr +# We use non-default scratch underlying overlay dirs, we need to check +# them explicitly after test. +_require_scratch_nocheck _scratch_mkfs >>$seqres.full 2>&1
Signature · 1 line
2.55.0
Quoted 17 lines · Prabhakar Pujeri
The test runs
_scratch_mkfswithout first requiring a scratch device, so it fails messily instead of skipping when no scratch device is configured. Use_require_scratch_nochecklike the neighbouring tests overlay/079 and overlay/080, as the test mounts overlay on the base scratch fs.Signed-off-by Prabhakar Pujeri <[email protected]>--- tests/overlay/081 | 3 +++ 1 file changed, 3 insertions(+)tests/overlay/081 +0
-0
tests/overlay/081 _begin_fstest auto quick · line 19
Quoted 6 lines
tests/overlay/081 +3
-0@@ -14,6 +14,9 @@ _begin_fstest auto quick . ./common/filter . ./common/attr +# We use non-default scratch underlying overlay dirs, we need to check +# them explicitly after test. +_require_scratch_nocheck
This copied comment is not true for this test
Not that it matters much because fsck.overlay is not maintained for a long time, but I don't like to spread this wrong pattern, so please use _require_scratch in this test.
Otherwise you can add
Thanks,
Amir.