[parted-devel] [PATCH 2/2] t0501-duplicate.sh: Add some more disk label types to the duplicate test

Brian C. Lane bcl at redhat.com
Tue Feb 9 19:17:10 GMT 2021


Add sun, atari, mac, and pc98 to the disklabels that we test
ped_disk_duplicate on.

aix isn't included because it doesn't support adding partitions.
dvh doesn't support boot partition
loop cannot be partitioned
---
 tests/t0501-duplicate.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/t0501-duplicate.sh b/tests/t0501-duplicate.sh
index 5b886c3..17a1740 100644
--- a/tests/t0501-duplicate.sh
+++ b/tests/t0501-duplicate.sh
@@ -18,8 +18,13 @@
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../parted .
 
-for t in msdos gpt bsd; do
-    duplicate $t || fail=1
+for t in msdos gpt bsd sun atari mac pc98; do
+    case $t in
+      atari) [ $ss -ne 512 ] && continue
+          ;;
+      *) duplicate $t || fail=1
+          ;;
+    esac
 done
 
 Exit $fail
-- 
2.26.2




More information about the parted-devel mailing list