]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: update fdisk formatting
authorKarel Zak <kzak@redhat.com>
Tue, 14 Oct 2014 15:10:11 +0000 (17:10 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Oct 2014 15:10:11 +0000 (17:10 +0200)
fdisk --list does no more use extra linebreak (\n) before
and after partition table entries.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 files changed:
tests/expected/fdisk/align-512-4K
tests/expected/fdisk/align-512-4K-63
tests/expected/fdisk/align-512-4K-md
tests/expected/fdisk/align-512-512
tests/expected/fdisk/align-512-512-topology
tests/expected/fdisk/mbr-dos-mode
tests/expected/fdisk/mbr-nondos-mode
tests/expected/fdisk/mbr-sort
tests/expected/fdisk/oddinput
tests/expected/fdisk/sunlabel
tests/ts/fdisk/bsd
tests/ts/fdisk/gpt
tests/ts/fdisk/mbr-dos-mode
tests/ts/fdisk/mbr-nondos-mode
tests/ts/fdisk/mbr-sort

index 261f16912bb722af641f402d8d0426703c42ca97..49f93751df7d4b7f81c397598d8fb1b6bd0f08ee 100644 (file)
@@ -64,7 +64,6 @@ Device     Boot Start    End Sectors Size Id Type
 <removed>6       77824  88063   10240   5M 83 Linux
 <removed>7       90112 102399   12288   6M 83 Linux
 
-
 Command (m for help): The partition table has been altered.
 Calling ioctl() to re-read partition table.
 Syncing disks.
index ee58b3a2a0f09f8d590f835327940280640a11d9..6e44cfe2bb7402a269d474c3bb5bb9c156356717 100644 (file)
@@ -65,7 +65,6 @@ Device     Boot Start    End Sectors Size Id Type
 <removed>6       75775  86014   10240   5M 83 Linux
 <removed>7       88063 102399   14337   7M 83 Linux
 
-
 Command (m for help): The partition table has been altered.
 Calling ioctl() to re-read partition table.
 Syncing disks.
index 87777f77425fe399d14191fe7245707d0ea19289..317865a86c47be9c10846330af7db1ab257c7b38 100644 (file)
@@ -30,7 +30,6 @@ Device     Boot Start    End Sectors Size Id Type
 <removed>1        2048  43007   40960  20M 83 Linux
 <removed>2       43008 102399   59392  29M 83 Linux
 
-
 Command (m for help): The partition table has been altered.
 Calling ioctl() to re-read partition table.
 Syncing disks.
@@ -70,7 +69,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>p1       2048 22527   20480  10M 83 Linux
 <removed>p2      22528 43007   20480  10M 83 Linux
 
-
 Command (m for help): The partition table has been altered.
 Calling ioctl() to re-read partition table.
 Syncing disks.
index b4a0e568a7f1bc6225433386e3180e40a1229581..27df5705135be1ee6d0f37b5d5150012d77ba98f 100644 (file)
@@ -64,5 +64,4 @@ Device     Boot Start    End Sectors Size Id Type
 <removed>p6      77824  88063   10240   5M 83 Linux
 <removed>p7      90112 102399   12288   6M 83 Linux
 
-
 Command (m for help): 
index 7552656eec7583c33e83b5252c74549464a34d45..8ae0c4057233c0c8a7562e0c432dc601a9cea9bb 100644 (file)
@@ -64,7 +64,6 @@ Device     Boot Start    End Sectors Size Id Type
 <removed>6       77824  88063   10240   5M 83 Linux
 <removed>7       90112 102399   12288   6M 83 Linux
 
-
 Command (m for help): The partition table has been altered.
 Calling ioctl() to re-read partition table.
 Syncing disks.
index 1b54d0939d9e56c9f57539914b5c802a128e5ef2..3ae0cf3c16ccd5e59ee818471d8d6ecf0eec1a8e 100644 (file)
@@ -27,7 +27,6 @@ Disk identifier: <removed>
 
 Device     Boot Start End Cylinders  Size Id Type
 <removed>1          1   1         1  7.8M 83 Linux
-
 -------------------
 
 Set partition type
@@ -44,7 +43,6 @@ Disk identifier: <removed>
 
 Device     Boot Start End Cylinders  Size Id Type
 <removed>1          1   1         1  7.8M bf Solaris
-
 -------------------
 
 Set primary partition active
@@ -61,7 +59,6 @@ Disk identifier: <removed>
 
 Device     Boot Start End Cylinders  Size Id Type
 <removed>1 *        1   1         1  7.8M bf Solaris
-
 -------------------
 
 Re-create primary partition
@@ -78,7 +75,6 @@ Disk identifier: <removed>
 
 Device     Boot Start End Cylinders  Size Id Type
 <removed>1          1   1         1  7.8M 83 Linux
-
 -------------------
 
 Create extended partition
@@ -96,7 +92,6 @@ Disk identifier: <removed>
 Device     Boot Start End Cylinders  Size Id Type
 <removed>1          1   1         1  7.8M 83 Linux
 <removed>2          2  12        12 86.3M  5 Extended
-
 -------------------
 
 Create logical partitions
@@ -118,7 +113,6 @@ Device     Boot Start End Cylinders  Size Id Type
 <removed>6          4   5         2 15.7M 83 Linux
 <removed>7          6   7         2 15.7M 83 Linux
 <removed>8          8   9         2 15.7M 83 Linux
-
 -------------------
 
 Delete logical partitions
@@ -137,7 +131,6 @@ Device     Boot Start End Cylinders  Size Id Type
 <removed>1          1   1         1  7.8M 83 Linux
 <removed>2          2  12        12 86.3M  5 Extended
 <removed>5          6   7         2 15.7M 83 Linux
-
 -------------------
 
 Create another logical partition
@@ -157,7 +150,6 @@ Device     Boot Start End Cylinders  Size Id Type
 <removed>2          2  12        12 86.3M  5 Extended
 <removed>5          6   7         2 15.7M 83 Linux
 <removed>6          2   3         2 15.7M 83 Linux
-
 Partition table entries are not in disk order.
 -------------------
 
@@ -177,7 +169,6 @@ Device     Boot Start End Cylinders  Size Id Type
 <removed>2          2  12        12 86.3M  5 Extended
 <removed>5          6   7         2 15.7M 83 Linux
 <removed>6          2   3         2 15.7M 83 Linux
-
 Partition table entries are not in disk order.
 -------------------
 
index d24691cd49331dc24e9138044d5dab0a927c9a85..cf7081f7f9dd0556ae9b89c443dd32a0283ff330 100644 (file)
@@ -25,7 +25,6 @@ Disk identifier: <removed>
 
 Device     Boot Start   End Sectors Size Id Type
 <removed>1       2048  8191    6144   3M 83 Linux
-
 -------------------
 
 Set primary partition active
@@ -41,7 +40,6 @@ Disk identifier: <removed>
 
 Device     Boot Start   End Sectors Size Id Type
 <removed>1 *     2048  8191    6144   3M 83 Linux
-
 -------------------
 
 Re-create 1st primary partition
@@ -57,7 +55,6 @@ Disk identifier: <removed>
 
 Device     Boot Start   End Sectors Size Id Type
 <removed>1       2048  8191    6144   3M 83 Linux
-
 -------------------
 
 Create 2nd primary partition
@@ -74,7 +71,6 @@ Disk identifier: <removed>
 Device     Boot Start   End Sectors Size Id Type
 <removed>1       2048  8191    6144   3M 83 Linux
 <removed>2       8192 12287    4096   2M 83 Linux
-
 -------------------
 
 Create extended partition
@@ -92,7 +88,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>1       2048  8191    6144   3M 83 Linux
 <removed>2       8192 12287    4096   2M 83 Linux
 <removed>3      12288 40959   28672  14M  5 Extended
-
 -------------------
 
 Create logical partitions
@@ -114,7 +109,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>6      20480 24575    4096   2M 83 Linux
 <removed>7      26624 30719    4096   2M 83 Linux
 <removed>8      32768 36863    4096   2M 83 Linux
-
 -------------------
 
 Delete logical partitions
@@ -133,7 +127,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>2       8192 12287    4096   2M 83 Linux
 <removed>3      12288 40959   28672  14M  5 Extended
 <removed>5      26624 30719    4096   2M 83 Linux
-
 -------------------
 
 Create another logical partition
@@ -153,7 +146,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>3      12288 40959   28672  14M  5 Extended
 <removed>5      26624 30719    4096   2M 83 Linux
 <removed>6      14336 18431    4096   2M 83 Linux
-
 Partition table entries are not in disk order.
 -------------------
 
@@ -173,7 +165,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>3      12288 40959   28672  14M  5 Extended
 <removed>5      26624 30719    4096   2M 83 Linux
 <removed>6      14336 18431    4096   2M 83 Linux
-
 Partition table entries are not in disk order.
 -------------------
 
@@ -192,7 +183,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>3      12288 40959   28672  14M  5 Extended
 <removed>5      26624 30719    4096   2M 83 Linux
 <removed>6      14336 18431    4096   2M 83 Linux
-
 Partition table entries are not in disk order.
 -------------------
 
index d7fb6aae746b165c6c4ac15b32a30bc4d67dc157..0e316c4d58bc475105f944aee80dd4d108ab1c42 100644 (file)
@@ -23,7 +23,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>2       2048  4095    2048   1M 83 Linux
 <removed>3       6144  8191    2048   1M 83 Linux
 <removed>4       8192 40959   32768  16M  5 Extended
-
 Partition table entries are not in disk order.
 -------------------
 
@@ -46,7 +45,6 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>6      22528 24575    2048   1M 83 Linux
 <removed>7      18432 20479    2048   1M 83 Linux
 <removed>8      10240 12287    2048   1M 83 Linux
-
 Partition table entries are not in disk order.
 -------------------
 
@@ -69,6 +67,5 @@ Device     Boot Start   End Sectors Size Id Type
 <removed>6      14336 16383    2048   1M 83 Linux
 <removed>7      18432 20479    2048   1M 83 Linux
 <removed>8      22528 24575    2048   1M 83 Linux
-
 -------------------
 
index 0ba07c6691478c71e5a71ea06cb96fd3ce2a8088..d336d55a57f18676dd66aa5e234ac1a9a55a61d7 100644 (file)
@@ -1,7 +1,6 @@
 Initialize empty image
 f1c9645dbc14efddc7d8a322685f26eb oddinput.img
 Empty image listing
-
 Disk testimage: 10 MiB, 10485760 bytes, 20480 sectors
 Units: cylinders of 16065 * 512 = 8225280 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
index 7045b61a789b60a5d3ccf12742c68107a569b618..43214b1d159c691b72593ecaf55c48efbda410db 100644 (file)
@@ -2,7 +2,6 @@ Initialize empty image
 f1c9645dbc14efddc7d8a322685f26eb sunlabel.img
 Create new SUN partition table
 f050fd2beb99f8d968bf17450f655f06 sunlabel.img
-
 Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
 Geometry: 1 heads, 63 sectors/track, 325 cylinders
 Units: cylinders of 63 * 512 = 32256 bytes
@@ -11,7 +10,6 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: sun
 Create first partition
 e730c7ec8208601f41963f0485147248 sunlabel.img
-
 Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
 Geometry: 1 heads, 63 sectors/track, 325 cylinders
 Units: cylinders of 63 * 512 = 32256 bytes
@@ -21,10 +19,8 @@ Disklabel type: sun
 
 Device             Start   End Cylinders Size Id Type         Flags
 <removed>1     1   128       129   4M 83 Linux native      
-
 Set partition sysid
 df75defdb97fbd56222aed18631a22d0 sunlabel.img
-
 Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
 Geometry: 1 heads, 63 sectors/track, 325 cylinders
 Units: cylinders of 63 * 512 = 32256 bytes
@@ -34,10 +30,8 @@ Disklabel type: sun
 
 Device             Start   End Cylinders Size Id Type      Flags
 <removed>1     1   128       129   4M  4 SunOS usr      
-
 Set first partition readonly
 da23f66698d9a553162887621d4c7490 sunlabel.img
-
 Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
 Geometry: 1 heads, 63 sectors/track, 325 cylinders
 Units: cylinders of 63 * 512 = 32256 bytes
@@ -47,10 +41,8 @@ Disklabel type: sun
 
 Device             Start   End Cylinders Size Id Type      Flags
 <removed>1     1   128       129   4M  4 SunOS usr     r
-
 Set first partition mountable
 3ab76e8491b103eab52b2ae1856c1e30 sunlabel.img
-
 Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
 Geometry: 1 heads, 63 sectors/track, 325 cylinders
 Units: cylinders of 63 * 512 = 32256 bytes
@@ -60,7 +52,6 @@ Disklabel type: sun
 
 Device             Start   End Cylinders Size Id Type      Flags
 <removed>1     1   128       129   4M  4 SunOS usr    ur
-
 Create second partition
 
 Welcome to fdisk <removed>.
@@ -75,7 +66,6 @@ Command (m for help): The partition table has been altered.
 Syncing disks.
 
 a87e80830aa13d2d68b766962f052750 sunlabel.img
-
 Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
 Geometry: 1 heads, 63 sectors/track, 325 cylinders
 Units: cylinders of 63 * 512 = 32256 bytes
@@ -86,6 +76,5 @@ Disklabel type: sun
 Device             Start   End Cylinders  Size Id Type         Flags
 <removed>1     1   128       129    4M  4 SunOS usr       ur
 <removed>2   129   325       198  6.1M 83 Linux native      
-
 Delete all partitions
 502ba7a0cfdce2849c3a99881f0590c3 sunlabel.img
index d5ec215a4e600c7ae80af6b8ac9222c8ebbe53a8..1d5f9a11a0c88f3c0f828e05f5b4d48af3e1f195 100755 (executable)
@@ -68,13 +68,13 @@ function fdisk_bsd_offset_and_byte_order_clean
 }
 
 function print_layout {
-       echo -ne "\n---layout----------" >> $TS_OUTPUT
+       echo -ne "\n---layout----------\n" >> $TS_OUTPUT
        $TS_CMD_FDISK -l ${TEST_IMAGE_NAME}  >> $TS_OUTPUT
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
 }
 
 function print_bsd_layout {
-       echo -ne "\n---layout----------" >> $TS_OUTPUT
+       echo -ne "\n---layout----------\n" >> $TS_OUTPUT
        echo -e "${FDISK_CMD_BSD_LIST}" | \
                        $TS_CMD_FDISK ${TEST_IMAGE_NAME} >> $TS_OUTPUT
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
index 3c174e96875b1a5412c43c1ae954dab522a4dfaf..fd9c23e0703d41bd27a362dd671e2d46ffc052ee 100755 (executable)
@@ -35,7 +35,7 @@ FDISK_CMD_DELETE_PART="d\n2\n"               # delete 2nd partition
 FDISK_CMD_CREATE_PART="n\n2\n\n\n"           # create 2nd partition
 
 function print_layout {
-       echo -ne "\n---layout----------" >> $TS_OUTPUT
+       echo -ne "\n---layout----------\n" >> $TS_OUTPUT
        $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} &>> $TS_OUTPUT
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
 }
index 6d517ea3e7d59a8495a1d285a857fa69056cd20b..4fad8da775e9ecab63a40f1405d394cdde637b26 100755 (executable)
@@ -39,7 +39,7 @@ FDISK_CMD_DELETE_EXTENDED="d\n2\n" # delete second primary
 FDISK_OPTIONS="-C 1024 -c=dos -u=cylinders"
 
 function print_layout {
-       echo -ne "\n---layout----------" >> $TS_OUTPUT
+       echo -ne "\n---layout----------\n" >> $TS_OUTPUT
        $TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
 }
index 9c38f3affc69a877128c065d8a498ce2132b294d..f39b5e0f0fcbaf70073ce27133289cfd95ad8637 100755 (executable)
@@ -37,7 +37,7 @@ FDISK_CMD_DELETE_2PRIMARY="d\n2\n" # delete first primary
 FDISK_CMD_DELETE_EXTENDED="d\n3\n" # delete second primary
 
 function print_layout {
-       echo -ne "\n---layout----------" >> $TS_OUTPUT
+       echo -ne "\n---layout----------\n" >> $TS_OUTPUT
        $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
 }
index 3166d867b7bfcea2f887ad3cb82ec166583f3764..2cdb11557a29d4e56a01c137acdb608d7d83caf2 100755 (executable)
@@ -39,7 +39,7 @@ FDISK_CMD_CREATE_4LOGICAL="n\n10240\n12287\n"
 FDISK_CMD_EXPERT_SORT="x\nf\nr\n"
 
 function print_layout {
-       echo -ne "\n---layout----------" >> $TS_OUTPUT
+       echo -ne "\n---layout----------\n" >> $TS_OUTPUT
        $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT
 }