Skip to contentSkip to conversation

tests: add test for loop option in fstab

PATCH Applied Ruediger Meier 2 participants 3 messages Feb 12, 2016 Util-Linux package

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · you
Quoted 7 lines · Ruediger Meier
Quoted 5 lines · Stanislav Brabec

Add a new fstab tests which check loop mount of the same source multiple times in multiple steps.

The test is currently failing, but it should not fail once the triggering bug will be fixed.

Quoted 8 lines
Quoted 4 lines

Will this be fixed quickly? Otherwise we should add
TS_KNOWN_FAIL="yes"
to the test. Then you would still see it in the build log and test diff but it wouldn't bother you with build error.

This statement was valid in the time of sending the patch. Karel promptly fixed it, so the fix appeared in the main tree even one commit earlier:

Ah sorry I've missed that. The test fails for me because of another minor problem. I'll send a patch.

cu,
Rudi

#1 lore raw

PATCH 1/1 tests: mkfs.ext3 image-file needs option -F

From: Ruediger Meier <[email protected]>

Maybe on newer systems it's not needed anymore.

CC Stanislav Brabec <[email protected]>
---
 tests/ts/mount/fstab-loop | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/ts/mount/fstab-loop +1 -1
index 3178b95..9e17943 100755
@@ -30,7 +30,7 @@ ts_check_prog "mkfs.ext3"
 
 IMG=$(ts_image_init)
 
-mkfs.ext3 $IMG &> /dev/null || ts_die "Cannot make ext3 on $DEVICE"
+mkfs.ext3 -F $IMG &> /dev/null || ts_die "Cannot make ext3 on $IMG"
 
 [ -d "$TS_MOUNTPOINT-1" ] || mkdir -p $TS_MOUNTPOINT-1
 [ -d "$TS_MOUNTPOINT-2" ] || mkdir -p $TS_MOUNTPOINT-2
Signature · 1 line
1.8.4.5
maintainer Applied
#2 lore raw

Re: [PATCH] tests: mkfs.ext3 image-file needs option -F

Quoted 2 lines · Ruediger Meier
 tests/ts/mount/fstab-loop | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com