diff options
Diffstat (limited to 'tests')
31 files changed, 0 insertions, 53 deletions
diff --git a/tests/t0001-tiny.sh b/tests/t0001-tiny.sh index c9ff34f..18ed353 100755 --- a/tests/t0001-tiny.sh +++ b/tests/t0001-tiny.sh @@ -27,8 +27,6 @@ fi ss=$sector_size_ dev=loop-file -fail=0 - for opt in '' -s; do dd if=/dev/null of=$dev bs=1 seek=$ss || framework_failure diff --git a/tests/t0010-script-no-ctrl-chars.sh b/tests/t0010-script-no-ctrl-chars.sh index 39662d3..dc950f2 100755 --- a/tests/t0010-script-no-ctrl-chars.sh +++ b/tests/t0010-script-no-ctrl-chars.sh @@ -28,7 +28,6 @@ ss=$sector_size_ n_sectors=5000 dev=loop-file -fail=0 dd if=/dev/null of=$dev bs=$ss seek=$n_sectors || fail=1 parted -s $dev mklabel msdos > out 2>&1 || fail=1 diff --git a/tests/t0100-print.sh b/tests/t0100-print.sh index dab579a..77fa136 100755 --- a/tests/t0100-print.sh +++ b/tests/t0100-print.sh @@ -43,8 +43,6 @@ EOF # dash's builtin printf doesn't recognize such \xHH hexadecimal escapes. msdos_magic='\125\252' -fail=0 - # The extra 3KB+ zero bytes at the end are to avoid triggering a failure # on linux-2.6.8 that's probably related to opening with O_DIRECT. # Note that the minimum number of appended zero bytes required to avoid diff --git a/tests/t0200-gpt.sh b/tests/t0200-gpt.sh index 38a439f..73e06bd 100755 --- a/tests/t0200-gpt.sh +++ b/tests/t0200-gpt.sh @@ -29,8 +29,6 @@ dev=loop-file # create a file large enough to hold a GPT partition table dd if=/dev/null of=$dev bs=1 seek=$N || framework_failure -fail=0 - # create a GPT partition table parted -s $dev mklabel gpt > out 2>&1 || fail=1 # expect no output diff --git a/tests/t0201-gpt.sh b/tests/t0201-gpt.sh index 8c603dc..4b59917 100755 --- a/tests/t0201-gpt.sh +++ b/tests/t0201-gpt.sh @@ -25,8 +25,6 @@ fi : ${srcdir=.} . $srcdir/t-lib.sh -fail=0 - dev=loop-file # create a backing file large enough for a GPT partition table dd if=/dev/null of=$dev seek=4001 2> /dev/null || fail=1 diff --git a/tests/t0202-gpt-pmbr.sh b/tests/t0202-gpt-pmbr.sh index 100194a..7bd89c7 100755 --- a/tests/t0202-gpt-pmbr.sh +++ b/tests/t0202-gpt-pmbr.sh @@ -27,7 +27,6 @@ fi dev=loop-file bootcode_size=446 -fail=0 dd if=/dev/null of=$dev bs=1 seek=1M || framework_failure # create a GPT partition table diff --git a/tests/t0205-gpt-list-clobbers-pmbr.sh b/tests/t0205-gpt-list-clobbers-pmbr.sh index 979a15e..e384803 100644 --- a/tests/t0205-gpt-list-clobbers-pmbr.sh +++ b/tests/t0205-gpt-list-clobbers-pmbr.sh @@ -28,8 +28,6 @@ fi : ${srcdir=.} . $srcdir/t-lib.sh -fail=0 - ss=$sector_size_ n_sectors=400 dev=dev-file diff --git a/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh b/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh index f47549e..9295017 100755 --- a/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh +++ b/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh @@ -26,8 +26,6 @@ fi : ${srcdir=.} . $srcdir/t-lib.sh -fail=0 - ss=$sector_size_ n_sectors=400 dev=dev-file diff --git a/tests/t0250-gpt.sh b/tests/t0250-gpt.sh index 201a081..8cb2d02 100755 --- a/tests/t0250-gpt.sh +++ b/tests/t0250-gpt.sh @@ -27,8 +27,6 @@ dev=loop-file nb=512 n_sectors=$(expr $nb '*' 512 / $sector_size_) -fail=0 - # create zeroed device dd if=/dev/zero bs=512 count=$nb of=$dev || fail=1 diff --git a/tests/t0280-gpt-corrupt.sh b/tests/t0280-gpt-corrupt.sh index 5bf38f4..4eaa31b 100755 --- a/tests/t0280-gpt-corrupt.sh +++ b/tests/t0280-gpt-corrupt.sh @@ -29,7 +29,6 @@ dev=loop-file ss=$sector_size_ n_sectors=5000 -fail=0 dd if=/dev/null of=$dev bs=$ss seek=$n_sectors || fail=1 # create gpt label diff --git a/tests/t0300-dos-on-gpt.sh b/tests/t0300-dos-on-gpt.sh index 7edb2ae..d5115cd 100755 --- a/tests/t0300-dos-on-gpt.sh +++ b/tests/t0300-dos-on-gpt.sh @@ -27,8 +27,6 @@ fi PARTED_SECTOR_SIZE=4096 export PARTED_SECTOR_SIZE -fail=0 - dev=loop-file # create a backing file large enough for a GPT partition table dd if=/dev/null of=$dev seek=4001 2> /dev/null || framework_failure diff --git a/tests/t0400-loop-clobber-infloop.sh b/tests/t0400-loop-clobber-infloop.sh index f173a91..72eb170 100644 --- a/tests/t0400-loop-clobber-infloop.sh +++ b/tests/t0400-loop-clobber-infloop.sh @@ -28,7 +28,6 @@ fi N=1M dev=loop-file -fail=0 dd if=/dev/null of=$dev bs=1 seek=$N || fail=1 mkswap $dev || fail=1 diff --git a/tests/t0500-dup-clobber.sh b/tests/t0500-dup-clobber.sh index d699a4f..605cfd3 100644 --- a/tests/t0500-dup-clobber.sh +++ b/tests/t0500-dup-clobber.sh @@ -27,7 +27,6 @@ fi PATH="..:$PATH" export PATH -fail=0 dup-clobber || fail=1 Exit $fail diff --git a/tests/t1101-busy-partition.sh b/tests/t1101-busy-partition.sh index 8dd3b76..bc79313 100755 --- a/tests/t1101-busy-partition.sh +++ b/tests/t1101-busy-partition.sh @@ -32,8 +32,6 @@ cat <<EOF > exp-error || framework_failure Error: Partition ${dev}2 is being used. You must unmount it before you modify it with Parted. EOF -fail=0 - parted -s "$dev" mklabel msdos > out 2>&1 || fail=1 # expect no output diff --git a/tests/t1700-ext-probe.sh b/tests/t1700-ext-probe.sh index eeaf689..bc1c9f9 100755 --- a/tests/t1700-ext-probe.sh +++ b/tests/t1700-ext-probe.sh @@ -29,8 +29,6 @@ dev=loop-file ss=$sector_size_ n_sectors=8000 -fail=0 - for type in ext2 ext3 ext4; do ( mkfs.$type -V ) >/dev/null 2>&1 || skip_ "no $type support" diff --git a/tests/t2300-dos-label-extended-bootcode.sh b/tests/t2300-dos-label-extended-bootcode.sh index 7ef1529..13a7622 100755 --- a/tests/t2300-dos-label-extended-bootcode.sh +++ b/tests/t2300-dos-label-extended-bootcode.sh @@ -29,8 +29,6 @@ require_512_byte_sector_size_ dev=loop-file bootcode_size=446 -fail=0 - # Create the test file dd if=/dev/zero of=$dev bs=1M count=4 || fail=1 diff --git a/tests/t2310-dos-extended-2-sector-min-offset.sh b/tests/t2310-dos-extended-2-sector-min-offset.sh index 3d5bdf6..cfb36dd 100644 --- a/tests/t2310-dos-extended-2-sector-min-offset.sh +++ b/tests/t2310-dos-extended-2-sector-min-offset.sh @@ -49,8 +49,6 @@ Error: Error informing the kernel about modifications to partition $p5 -- Device Error: Failed to add partition 5 (Device or resource busy) EOF -fail=0 - # Create a DOS label with an extended partition starting at sector 64. parted -s $scsi_dev mklabel msdos || fail=1 parted --align=min -s $scsi_dev mkpart extended 64s 128s> out 2>&1 || fail=1 diff --git a/tests/t2400-dos-hfs-partition-type.sh b/tests/t2400-dos-hfs-partition-type.sh index 1b1ffe6..995aebc 100644 --- a/tests/t2400-dos-hfs-partition-type.sh +++ b/tests/t2400-dos-hfs-partition-type.sh @@ -28,8 +28,6 @@ dev=loop-file ss=$sector_size_ n_sectors=8000 -fail=0 - dd if=/dev/null of=$dev bs=$ss seek=$n_sectors || framework_failure # create a GPT partition table diff --git a/tests/t3000-resize-fs.sh b/tests/t3000-resize-fs.sh index f9a2401..b658348 100755 --- a/tests/t3000-resize-fs.sh +++ b/tests/t3000-resize-fs.sh @@ -49,8 +49,6 @@ scsi_debug_setup_ dev_size_mb=550 > dev-name || skip_ 'failed to create scsi_debug device' dev=$(cat dev-name) -fail=0 - parted -s $dev mklabel gpt > out 2>&1 || fail=1 # expect no output compare out /dev/null || fail=1 diff --git a/tests/t3200-type-change.sh b/tests/t3200-type-change.sh index 7f1e066..060df87 100755 --- a/tests/t3200-type-change.sh +++ b/tests/t3200-type-change.sh @@ -40,7 +40,6 @@ scsi_dev=$(cat dev-name) # partition and ensure that parted doesn't "helpfully" change the partition # type to match the newly-detected FS type. -fail=0 parted -s $scsi_dev mklabel msdos mkpart primary fat32 64s 80000s || fail=1 parted -s $scsi_dev u s p diff --git a/tests/t3300-palo-prep.sh b/tests/t3300-palo-prep.sh index 5ff40b3..a177e7c 100755 --- a/tests/t3300-palo-prep.sh +++ b/tests/t3300-palo-prep.sh @@ -31,7 +31,6 @@ cat > exp <<EOF || framework_failure 1:2048s:4095s:2048s:::palo; EOF -fail=0 dev=dev-file n_sectors=5000 diff --git a/tests/t3310-flags.sh b/tests/t3310-flags.sh index 05d38ac..681330e 100644 --- a/tests/t3310-flags.sh +++ b/tests/t3310-flags.sh @@ -25,8 +25,6 @@ fi : ${abs_top_srcdir=$(cd .. && pwd)} . $srcdir/t-lib.sh ss=$sector_size_ - -fail=0 dev=dev-file # Extract all msdos flag names from the texinfo documentation. diff --git a/tests/t4001-sun-vtoc.sh b/tests/t4001-sun-vtoc.sh index 839d399..8cc03e6 100755 --- a/tests/t4001-sun-vtoc.sh +++ b/tests/t4001-sun-vtoc.sh @@ -31,8 +31,6 @@ dev=loop-file # create a file to simulate the underlying device dd if=/dev/null of=$dev bs=1 seek=$N || framework_failure -fail=0 - # label the test disk parted -s $dev mklabel sun > out 2>&1 || fail=1 # expect no output diff --git a/tests/t4100-msdos-starting-sector.sh b/tests/t4100-msdos-starting-sector.sh index 370a7f3..41b795b 100755 --- a/tests/t4100-msdos-starting-sector.sh +++ b/tests/t4100-msdos-starting-sector.sh @@ -36,7 +36,6 @@ parted -s $dev mklabel msdos > out 2>&1 || fail=1 compare out /dev/null || fail=1 # Test the output of print free with no partitions. -fail=0 cat <<EOF > exp || fail=1 BYT; path:${N}s:file:$ss:$ss:msdos:; diff --git a/tests/t6000-dm.sh b/tests/t6000-dm.sh index 6f0152c..083b741 100755 --- a/tests/t6000-dm.sh +++ b/tests/t6000-dm.sh @@ -49,8 +49,6 @@ cleanup_() { f1=$(pwd)/1; d1=$(loop_setup_ "$f1") \ || skip_ "is this partition mounted with 'nodev'?" -fail=0 - # setup: create loop devices f2=$(pwd)/2 && d2=$(loop_setup_ "$f2") || fail=1 f3=$(pwd)/3 && d3=$(loop_setup_ "$f3") || fail=1 diff --git a/tests/t8000-loop.sh b/tests/t8000-loop.sh index b5c1718..cf6586b 100755 --- a/tests/t8000-loop.sh +++ b/tests/t8000-loop.sh @@ -37,8 +37,6 @@ cleanup_() f1=$(pwd)/1; d1=$(loop_setup_ "$f1") \ || skip_ "is this partition mounted with 'nodev'?" -fail=0 - # Expect this to succeed. parted -s $d1 mklabel msdos > err 2>&1 || fail=1 compare err /dev/null || fail=1 # expect no output diff --git a/tests/t9010-big-sector.sh b/tests/t9010-big-sector.sh index 7cd856d..100cffb 100755 --- a/tests/t9010-big-sector.sh +++ b/tests/t9010-big-sector.sh @@ -37,8 +37,6 @@ scsi_debug_setup_ dev_size_mb=8 sector_size=4096 > dev-name || skip_ 'failed to create scsi_debug device' scsi_dev=$(cat dev-name) -fail=0 - # create partition table and print parted -s $scsi_dev mklabel gpt print > out 2>&1 || fail=1 grep '^Sector' out > k 2>&1 || fail=1 diff --git a/tests/t9020-alignment.sh b/tests/t9020-alignment.sh index 3a24f1c..1b09c06 100755 --- a/tests/t9020-alignment.sh +++ b/tests/t9020-alignment.sh @@ -41,8 +41,6 @@ scsi_debug_setup_ physblk_exp=3 lowest_aligned=7 num_parts=4 > dev-name || skip_ 'failed to create scsi_debug device' scsi_dev=$(cat dev-name) -fail=0 - # print alignment info "$abs_srcdir/print-align" $scsi_dev > out 2>&1 || fail=1 diff --git a/tests/t9021-maxima.sh b/tests/t9021-maxima.sh index 0f16297..2b07f0f 100755 --- a/tests/t9021-maxima.sh +++ b/tests/t9021-maxima.sh @@ -25,7 +25,6 @@ fi . $srcdir/t-lib.sh ss=$sector_size_ -fail=0 dev=dev-file PATH="..:$PATH" export PATH diff --git a/tests/t9030-align-check.sh b/tests/t9030-align-check.sh index d4294ae..fe8d183 100644 --- a/tests/t9030-align-check.sh +++ b/tests/t9030-align-check.sh @@ -36,8 +36,6 @@ scsi_debug_setup_ dev_size_mb=550 physblk_exp=3 lowest_aligned=7 > dev-name || scsi_dev=$(cat dev-name) p1=${scsi_dev}1 -fail=0 - parted -s $scsi_dev mklabel gpt || fail=1 i=60 diff --git a/tests/t9040-many-partitions.sh b/tests/t9040-many-partitions.sh index 02cb809..b81009e 100644 --- a/tests/t9040-many-partitions.sh +++ b/tests/t9040-many-partitions.sh @@ -45,8 +45,6 @@ scsi_debug_setup_ sector_size=$ss dev_size_mb=$n_MiB > dev-name || skip_ 'failed to create scsi_debug device' scsi_dev=$(cat dev-name) -fail=0 - n=$((n_MiB * sectors_per_MiB)) printf "BYT;\n$scsi_dev:${n}s:scsi:$ss:$ss:gpt:Linux scsi_debug;\n" \ > exp || fail=1 |