aboutsummaryrefslogtreecommitdiffstats
path: root/main/parted/fix-truncate-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/parted/fix-truncate-tests.patch')
-rw-r--r--main/parted/fix-truncate-tests.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/parted/fix-truncate-tests.patch b/main/parted/fix-truncate-tests.patch
new file mode 100644
index 00000000000..c7c6667f969
--- /dev/null
+++ b/main/parted/fix-truncate-tests.patch
@@ -0,0 +1,48 @@
+Fixes for BusyBox's truncate
+--- a/tests/t0290-gpt-name.sh
++++ b/tests/t0290-gpt-name_.sh
+@@ -21,7 +21,7 @@
+
+ dev=loop-file
+
+-truncate --size 50MiB "$dev" || fail=1
++truncate -s 50M "$dev" || fail=1
+
+ # create partition with empty name
+ parted --script "$dev" mklabel gpt mkpart '""' ext4 1MiB 49MiB > out 2>&1 || fail=1
+
+--- a/tests/t0215-gpt-attrs.sh
++++ b/tests/t0215-gpt-attrs.sh
+@@ -23,7 +23,7 @@
+ dev=loop-file
+
+ # create device
+-truncate --size 50MiB "$dev" || fail=1
++truncate -s 50M "$dev" || fail=1
+
+ # create gpt label and one partitions
+ parted --script "$dev" mklabel gpt > out 2>&1 || fail=1
+
+--- a/tests/t0801-json-msdos.sh
++++ b/tests/t0801-json-msdos.sh
+@@ -23,7 +23,7 @@
+ dev=loop-file
+
+ # create device
+-truncate --size 50MiB "$dev" || fail=1
++truncate -s 50M "$dev" || fail=1
+
+ # create msdos label and some partitions
+ parted --script "$dev" mklabel msdos > out 2>&1 || fail=1
+
+--- a/tests/t0800-json-gpt.sh
++++ b/tests/t0800-json-gpt.sh
+@@ -23,7 +23,7 @@
+ dev=loop-file
+
+ # create device
+-truncate --size 50MiB "$dev" || fail=1
++truncate -s 50M "$dev" || fail=1
+
+ # create gpt label and some partitions
+ parted --script "$dev" mklabel gpt > out 2>&1 || fail=1