]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: ignore stderr in fdisk -l
authorKarel Zak <kzak@redhat.com>
Mon, 11 Mar 2013 14:14:51 +0000 (15:14 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Mar 2013 14:14:51 +0000 (15:14 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/fdisk/gpt
tests/ts/fdisk/gpt

index 2206392e665e392e05750a46d73c359b4991fdbb..b73d5c339f2ae278eebb5c9c2db5a65d4eac5900 100644 (file)
@@ -2,9 +2,6 @@ Initialize empty image
 Create new GPT partition table
 
 ---layout----------
-WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
-
-
 __ts_dev__: 10 MB, 10485760 bytes, 20480 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
@@ -19,9 +16,6 @@ Create partitions
 Change partition type by number
 
 ---layout----------
-WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
-
-
 __ts_dev__: 10 MB, 10485760 bytes, 20480 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
@@ -43,9 +37,6 @@ Disk label type: gpt
 Change partition type by UUID
 
 ---layout----------
-WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
-
-
 __ts_dev__: 10 MB, 10485760 bytes, 20480 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
@@ -67,9 +58,6 @@ Disk label type: gpt
 Delete partition
 
 ---layout----------
-WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
-
-
 __ts_dev__: 10 MB, 10485760 bytes, 20480 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
@@ -90,9 +78,6 @@ Disk label type: gpt
 Create again partition
 
 ---layout----------
-WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
-
-
 __ts_dev__: 10 MB, 10485760 bytes, 20480 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
index 179e9387f52bc08cfae66fa914c7cfffac6741f8..a0902ca9f4dcf1ab5792c5d6456fcb79daf8a0a1 100755 (executable)
@@ -36,7 +36,7 @@ FDISK_CMD_CREATE_PART="n\n2\n\n\n"           # create 2nd partition
 
 function print_layout {
        echo -ne "\n---layout----------" >> $TS_OUTPUT
-       $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} | \
+       $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} 2> /dev/null | \
                sed 's/^.*\.img/__ts_dev__/g;
                     s/^[[:blank:]]*Device Boot/     Device Boot/g' >> $TS_OUTPUT 2>&1
        echo -ne   "-------------------\n\n" >> $TS_OUTPUT