summaryrefslogtreecommitdiffstats
path: root/tests/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 04:59:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 04:59:33 +0000
commit73193347133e750faf27f88fd3ab31ce43aff062 (patch)
treee28a6d9512d1787b1fcbe9167188c9d134bf51d9 /tests/scripts
parentAdding upstream version 1.47.0. (diff)
downloade2fsprogs-73193347133e750faf27f88fd3ab31ce43aff062.tar.xz
e2fsprogs-73193347133e750faf27f88fd3ab31ce43aff062.zip
Adding upstream version 1.47.1.upstream/1.47.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/scripts')
-rwxr-xr-xtests/scripts/resize_test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scripts/resize_test b/tests/scripts/resize_test
index a000c85..588f5da 100755
--- a/tests/scripts/resize_test
+++ b/tests/scripts/resize_test
@@ -64,6 +64,7 @@ chmod u-w $TMPFILE
echo $RESIZE2FS -P $TMPFILE >> $LOG 2>&1
if ! $RESIZE2FS -P $TMPFILE >> $LOG 2>&1
then
+ echo "First resize2fs failed" >> $LOG
return 1
fi
chmod u+w $TMPFILE
@@ -71,12 +72,14 @@ chmod u+w $TMPFILE
echo $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS $TMPFILE $SIZE_2 >> $LOG 2>&1
if ! $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS $TMPFILE $SIZE_2 >> $LOG 2>&1
then
+ echo "Second resize2fs failed" >> $LOG
return 1
fi
echo $FSCK -fy $TMPFILE >> $LOG 2>&1
if ! $FSCK -fy $TMPFILE >> $LOG 2>&1
then
+ echo "First fsck failed" >> $LOG
$DUMPE2FS $TMPFILE >> $LOG
return 1
fi
@@ -101,12 +104,14 @@ fi
echo $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS -M $TMPFILE $SIZE_2 >> $LOG 2>&1
if ! $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS -M $TMPFILE $SIZE_2 >> $LOG 2>&1
then
+ echo "Third resize2fs failed" >> $LOG
return 1
fi
echo $FSCK -fy $TMPFILE >> $LOG 2>&1
if ! $FSCK -fy $TMPFILE >> $LOG 2>&1
then
+ echo "Second fsck failed" >> $LOG
$DUMPE2FS $TMPFILE >> $LOG
return 1
fi
@@ -126,12 +131,14 @@ fi
echo $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS -M $TMPFILE $SIZE_2 >> $LOG 2>&1
if ! $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS -M $TMPFILE $SIZE_2 >> $LOG 2>&1
then
+ echo "Fourth resize2fs failed" >> $LOG
return 1
fi
echo $FSCK -fy $TMPFILE >> $LOG 2>&1
if ! $FSCK -fy $TMPFILE >> $LOG 2>&1
then
+ echo "Third fsck failed" >> $LOG
$DUMPE2FS $TMPFILE >> $LOG
return 1
fi
@@ -151,12 +158,14 @@ fi
echo $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS -M $TMPFILE $SIZE_2 >> $LOG 2>&1
if ! $RESIZE2FS $RESIZE2FS_OPTS -d $DBG_FLAGS -M $TMPFILE $SIZE_2 >> $LOG 2>&1
then
+ echo "Fifth resize2fs failed" >> $LOG
return 1
fi
echo $FSCK -fy $TMPFILE >> $LOG 2>&1
if ! $FSCK -fy $TMPFILE >> $LOG 2>&1
then
+ echo "Fourth fsck failed" >> $LOG
$DUMPE2FS $TMPFILE >> $LOG
return 1
fi