Skip to contentSkip to conversation

overlay/081: add missing _require_scratch_nocheck check

PATCH Superseded Prabhakar Pujeri 2 participants 2 messages Aug 31

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 2270a04..a13b785 100755
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Prabhakar Pujeri

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 +0 -0
index 2270a04..a13b785 100755

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.