d75d85cc43
- tests/t1701-rescue-fs wait for the device to appear. (bcl) - Increase timeout for rmmod scsi_debug and make it a framework failure (bcl) - libparted/dasd: add test cases for the new fdasd functions (dongdwdw) - libparted/dasd: add an exception for changing DASD-LDL partition table (dongdwdw) - libpartd/dasd: improve flag processing for DASD-LDL (dongdwdw) - parted/ui: remove unneccesary information of command line (dongdwdw) - parted: check the name of partition first when to name a partition (dongdwdw) - Add support for RAM drives (sparschauer) - Fix crash when localized (psusi) - libparted: Fix typo in hfs error message (sebras) - libparted: Fix MacOS boot support (laurent) - mac: copy partition type and name correctly (saproj) - libparted: Add support for atari partition tables (glaubitz) - libparted:tests: Move get_sector_size() to common.c (glaubitz) - tests: Update t0220 and t0280 for the swap flag. (bcl) - libparted: set swap flag on GPT partitions (aschnell) - libparted/dasd: add test cases for the new fdasd functions (dongdwdw) - libparted/dasd: add new fdasd functions (dongdwdw) - libparted/dasd: update and improve fdasd functions (dongdwdw) - libparted/dasd: unify vtoc handling for cdl/ldl (dongdwdw) - libparted: Don't warn if no HDIO_GET_IDENTITY ioctl (sparschauer) - libparted: Fix starting CHS in protective MBR (petr.uzel) - tests: Stop timing t9040 (#1172675) (bcl)
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
From 3228fcc714347701f48034288b5fa98c6bb0a50d Mon Sep 17 00:00:00 2001
|
|
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Date: Thu, 22 Dec 2016 16:59:27 -0800
|
|
Subject: [PATCH 63/75] tests: Update t0220 and t0280 for the swap flag.
|
|
|
|
---
|
|
tests/t0220-gpt-msftres.sh | 6 +++++-
|
|
tests/t0280-gpt-corrupt.sh | 2 +-
|
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/t0220-gpt-msftres.sh b/tests/t0220-gpt-msftres.sh
|
|
index 79518ae..6721a47 100755
|
|
--- a/tests/t0220-gpt-msftres.sh
|
|
+++ b/tests/t0220-gpt-msftres.sh
|
|
@@ -56,7 +56,11 @@ printf "BYT;\n$dev:${n_sectors}s:file:$ss:$ss:gpt::;\n" > exp
|
|
i=1
|
|
for type in $fs_types; do
|
|
end=$(expr $start + $part_size - 1)
|
|
- case $type in fat*|NTFS) flag=msftdata;; *) flag=;; esac
|
|
+ case $type in
|
|
+ fat*|NTFS) flag=msftdata;;
|
|
+ linux-swap) flag=swap;;
|
|
+ *) flag=;;
|
|
+ esac
|
|
echo "$i:${start}s:${end}s:${part_size}s::$type:$flag;" >> exp || fail=1
|
|
parted -s $dev mkpart p-name $type ${start}s ${end}s > err 2>&1 || fail=1
|
|
compare /dev/null err || fail=1
|
|
diff --git a/tests/t0280-gpt-corrupt.sh b/tests/t0280-gpt-corrupt.sh
|
|
index a7c8d82..1b4d86b 100755
|
|
--- a/tests/t0280-gpt-corrupt.sh
|
|
+++ b/tests/t0280-gpt-corrupt.sh
|
|
@@ -89,7 +89,7 @@ compare exp err || fail=1
|
|
parted -m -s $dev u s print > out 2>&1 || fail=1
|
|
|
|
# check for expected output
|
|
-printf "BYT;\nfile\n1:2048s:4095s:2048s::foo:;\n" > exp || fail=1
|
|
+printf "BYT;\nfile\n1:2048s:4095s:2048s::foo:swap;\n" > exp || fail=1
|
|
sed "s/.*gpt::;/file/" out > k && mv k out || fail=1
|
|
compare exp out || fail=1
|
|
|
|
--
|
|
2.9.3
|
|
|