blob: 27a6287e81cd075c3567621ecc416a0e23022c9e (
plain) (
tree)
|
|
mkpart syntax recently changed, tests do not reflect that.
--- parted-3.2/tests/t5000-tags.sh.old 2014-06-15 18:17:43.000000000 +0000
+++ parted-3.2/tests/t5000-tags.sh 2017-08-19 18:55:03.207451920 +0000
@@ -48,7 +48,7 @@
compare exp out || fail=1
# add a partition
-parted -s $dev u s mkpart name1 ${start_sector} ${end_sector} >out 2>&1 \
+parted -s $dev u s mkpart primary ${start_sector} ${end_sector} name 1 name1 >out 2>&1 \
|| fail=1
# print the table before modification
--- parted-3.2/tests/t0208-mkpart-end-in-IEC.sh.old 2014-06-15 18:17:43.000000000 +0000
+++ parted-3.2/tests/t0208-mkpart-end-in-IEC.sh 2017-08-19 20:05:19.650875813 +0000
@@ -25,22 +25,22 @@
dd if=/dev/null of=$dev bs=1M seek=$n_mbs || fail=1
# create 1st partition
-parted --align=none -s $dev mklabel gpt mkpart p1 1MiB 2MiB > err 2>&1 || fail=1
+parted --align=none -s $dev mklabel gpt mkpart primary 1MiB 2MiB name 1 p1 > err 2>&1 || fail=1
compare /dev/null err || fail=1 # expect no output
#parted -m -s $dev u s p > exp || fail=1
# create 2nd partition - they should not overlap
# this time specify default unit
-parted --align=none -s $dev unit MiB mkpart p2 2 3 > err 2>&1 || fail=1
+parted --align=none -s $dev unit MiB mkpart primary 2 3 name 2 p2 > err 2>&1 || fail=1
compare /dev/null err || fail=1 # expect no output
# create 3rd partition - expect no overlap
# specify default unit, but explicitly override it
-parted --align=none -s $dev unit TB mkpart p3 3MiB 4MiB > err 2>&1 || fail=1
+parted --align=none -s $dev unit TB mkpart primary 3MiB 4MiB name 3 p3 > err 2>&1 || fail=1
compare /dev/null err || fail=1 # expect no output
# Specify default unit of MiB, yet use explicit ending sector number.
-parted --align=none -s $dev unit MiB mkpart p4 4MiB 10239s > err 2>&1 || fail=1
+parted --align=none -s $dev unit MiB mkpart primary 4MiB 10239s name 4 p4 > err 2>&1 || fail=1
compare /dev/null err || fail=1 # expect no output
# check boundaries of the partitions
|