Message ID | 20200309114036.5266-2-anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fstests: cleanup and fix btrfs/177 | expand |
On 9.03.20 г. 13:40 ч., Anand Jain wrote: > This test case needs at least 3g scratch device space, check for it > before starting the test case. > > Signed-off-by: Anand Jain <anand.jain@oracle.com> > --- > tests/btrfs/177 | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tests/btrfs/177 b/tests/btrfs/177 > index 2b2c2fcc2198..a627c2ab1666 100755 > --- a/tests/btrfs/177 > +++ b/tests/btrfs/177 > @@ -34,6 +34,11 @@ _require_scratch_swapfile > > swapfile="$SCRATCH_MNT/swap" > > +minsize=$((3 * 1024 * 1024 * 1024)) > +devsize=$(blockdev --getsize64 $SCRATCH_DEV) > +[ "$devsize" -lt "$minsize" ] && \ > + _notrun "Scratch device $SCRATCH_DEV $devsize must be at least $minsize" Simply use : _require_scratch_size $((3 * 1024*1024)) > + > # First, create a 1GB filesystem and fill it up. > _scratch_mkfs_sized $((1024 * 1024 * 1024)) >> $seqres.full 2>&1 > _scratch_mount >
diff --git a/tests/btrfs/177 b/tests/btrfs/177 index 2b2c2fcc2198..a627c2ab1666 100755 --- a/tests/btrfs/177 +++ b/tests/btrfs/177 @@ -34,6 +34,11 @@ _require_scratch_swapfile swapfile="$SCRATCH_MNT/swap" +minsize=$((3 * 1024 * 1024 * 1024)) +devsize=$(blockdev --getsize64 $SCRATCH_DEV) +[ "$devsize" -lt "$minsize" ] && \ + _notrun "Scratch device $SCRATCH_DEV $devsize must be at least $minsize" + # First, create a 1GB filesystem and fill it up. _scratch_mkfs_sized $((1024 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount
This test case needs at least 3g scratch device space, check for it before starting the test case. Signed-off-by: Anand Jain <anand.jain@oracle.com> --- tests/btrfs/177 | 5 +++++ 1 file changed, 5 insertions(+)