]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: standardize fdisk headers in MBR tests
authorKarel Zak <kzak@redhat.com>
Wed, 1 Aug 2012 09:16:00 +0000 (11:16 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Aug 2012 09:16:00 +0000 (11:16 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/fdisk/mbr-dos-mode
tests/expected/fdisk/mbr-nondos-mode
tests/ts/fdisk/mbr-dos-mode
tests/ts/fdisk/mbr-nondos-mode

index 16de4d596542091a9f1e2b3942db9c9fe241b1a6..b04f95679db6ae4366996f85e06d8d32c91e8e9a 100644 (file)
@@ -11,7 +11,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 -------------------
 
 Create primary partition
@@ -25,7 +25,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   83  Linux
 -------------------
 
@@ -40,7 +40,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   bf  Solaris
 -------------------
 
@@ -55,7 +55,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1   *           1           1        8001   bf  Solaris
 -------------------
 
@@ -70,7 +70,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   83  Linux
 -------------------
 
@@ -85,7 +85,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   83  Linux
 __ts_dev__2               2          12       88357+   5  Extended
 -------------------
@@ -101,7 +101,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   83  Linux
 __ts_dev__2               2          12       88357+   5  Extended
 __ts_dev__5               2           3       16033+  83  Linux
@@ -121,7 +121,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   83  Linux
 __ts_dev__2               2          12       88357+   5  Extended
 __ts_dev__5               6           7       16033+  83  Linux
@@ -138,7 +138,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1               1           1        8001   83  Linux
 __ts_dev__2               2          12       88357+   5  Extended
 __ts_dev__5               6           7       16033+  83  Linux
@@ -158,7 +158,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__2               2          12       88357+   5  Extended
 __ts_dev__5               6           7       16033+  83  Linux
 __ts_dev__6               2           3       16033+  83  Linux
@@ -177,6 +177,6 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                   Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 -------------------
 
index 088ce67bcda6badf5756ce9a38e8943b4b36310c..6ded30f86a0fb941db5473637f357e2033626699 100644 (file)
@@ -10,7 +10,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 -------------------
 
 Create 1st primary partition
@@ -23,7 +23,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 -------------------
 
@@ -37,7 +37,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1   *        2048        8191        3072   83  Linux
 -------------------
 
@@ -51,7 +51,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 -------------------
 
@@ -65,7 +65,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 __ts_dev__2            8192       12287        2048   83  Linux
 -------------------
@@ -80,7 +80,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 __ts_dev__2            8192       12287        2048   83  Linux
 __ts_dev__3           12288       40959       14336    5  Extended
@@ -96,7 +96,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 __ts_dev__2            8192       12287        2048   83  Linux
 __ts_dev__3           12288       40959       14336    5  Extended
@@ -116,7 +116,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 __ts_dev__2            8192       12287        2048   83  Linux
 __ts_dev__3           12288       40959       14336    5  Extended
@@ -133,7 +133,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__1            2048        8191        3072   83  Linux
 __ts_dev__2            8192       12287        2048   83  Linux
 __ts_dev__3           12288       40959       14336    5  Extended
@@ -153,7 +153,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__2            8192       12287        2048   83  Linux
 __ts_dev__3           12288       40959       14336    5  Extended
 __ts_dev__5           26624       30719        2048   83  Linux
@@ -172,7 +172,7 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 __ts_dev__3           12288       40959       14336    5  Extended
 __ts_dev__5           26624       30719        2048   83  Linux
 __ts_dev__6           14336       18431        2048   83  Linux
@@ -190,6 +190,6 @@ Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00000001
 
-                                                                      Device Boot      Start         End      Blocks   Id  System
+     Device Boot      Start         End      Blocks   Id  System
 -------------------
 
index 8226b574bb11941549c2c30b140db1838560865d..07b20061ee154e4dcc92cc497a12c7938ca380cf 100755 (executable)
@@ -39,9 +39,10 @@ FDISK_CMD_DELETE_EXTENDED="d\n2\n" # delete second primary
 
 function print_layout {
        echo -ne "\n---layout----------" >> $TS_OUTPUT
-       $TS_CMD_FDISK -c=dos -u=cylinders -l ${TEST_IMAGE_NAME} | sed 's/^.*\.img/__ts_dev__/g' >> $TS_OUTPUT 2>&1
+       $TS_CMD_FDISK -c=dos -u=cylinders -l ${TEST_IMAGE_NAME} | \
+               sed 's/^.*\.img/__ts_dev__/g;
+                    s/^[[:blank:]]*Device Boot/     Device Boot/g' >> $TS_OUTPUT 2>&1
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
-       return 1
 }
 
 #
index 9999f1a5dac3c021273247077c320c14eb0f18f0..119d2c9ff95ac89187c986e1e5f6e33a6c66fd01 100755 (executable)
@@ -36,7 +36,9 @@ FDISK_CMD_DELETE_EXTENDED="d\n3\n" # delete second primary
 
 function print_layout {
        echo -ne "\n---layout----------" >> $TS_OUTPUT
-       $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} | sed 's/^.*\.img/__ts_dev__/g' >> $TS_OUTPUT 2>&1
+       $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} | \
+               sed 's/^.*\.img/__ts_dev__/g;
+                    s/^[[:blank:]]*Device Boot/     Device Boot/g' >> $TS_OUTPUT 2>&1
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
 }