From: Karel Zak Date: Thu, 29 Jun 2017 11:31:35 +0000 (+0200) Subject: tests: explicitly define wipefs outpuit columns X-Git-Tag: v2.31-rc1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afeb1a8255638ee28c2f32f23b91c32890ef48dc;p=thirdparty%2Futil-linux.git tests: explicitly define wipefs outpuit columns Signed-off-by: Karel Zak --- diff --git a/tests/expected/sfdisk/wipe-fs-to-dos b/tests/expected/sfdisk/wipe-fs-to-dos index 38e0814e5d..f87eb67be5 100644 --- a/tests/expected/sfdisk/wipe-fs-to-dos +++ b/tests/expected/sfdisk/wipe-fs-to-dos @@ -25,5 +25,5 @@ Device Boot Start End Sectors Size Id Type The partition table has been altered. =====Check content================================ -DEVICE OFFSET TYPE UUID LABEL -sdc 0x1fe dos +OFFSET TYPE +0x1fe dos diff --git a/tests/expected/sfdisk/wipe-gpt-to-dos b/tests/expected/sfdisk/wipe-gpt-to-dos index f99e626f5c..90c654f199 100644 --- a/tests/expected/sfdisk/wipe-gpt-to-dos +++ b/tests/expected/sfdisk/wipe-gpt-to-dos @@ -45,5 +45,5 @@ Device Boot Start End Sectors Size Id Type The partition table has been altered. =====Check content================================ -DEVICE OFFSET TYPE UUID LABEL -sdc 0x1fe dos +OFFSET TYPE +0x1fe dos diff --git a/tests/expected/sfdisk/wipe-gpt-to-dos-auto b/tests/expected/sfdisk/wipe-gpt-to-dos-auto index 5589530714..8855859f04 100644 --- a/tests/expected/sfdisk/wipe-gpt-to-dos-auto +++ b/tests/expected/sfdisk/wipe-gpt-to-dos-auto @@ -52,5 +52,5 @@ Device Boot Start End Sectors Size Id Type The partition table has been altered. =====Check content================================ -DEVICE OFFSET TYPE UUID LABEL -sdc 0x1fe dos +OFFSET TYPE +0x1fe dos diff --git a/tests/expected/sfdisk/wipe-partition b/tests/expected/sfdisk/wipe-partition index ec9d49db8f..b1b10162e1 100644 --- a/tests/expected/sfdisk/wipe-partition +++ b/tests/expected/sfdisk/wipe-partition @@ -50,9 +50,9 @@ Calling ioctl() to re-read partition table. Syncing disks. =====Check content (disk)================================ -DEVICE OFFSET TYPE UUID LABEL -sdc 0x1fe PMBR -sdc 0x31ffe00 gpt -sdc 0x200 gpt +OFFSET TYPE +0x1fe PMBR +0x31ffe00 gpt +0x200 gpt =====Check content (partition)================================ diff --git a/tests/ts/sfdisk/wipe b/tests/ts/sfdisk/wipe index ed89e9a9ce..bba57a86d9 100755 --- a/tests/ts/sfdisk/wipe +++ b/tests/ts/sfdisk/wipe @@ -41,7 +41,7 @@ echo ',,L' | $TS_CMD_SFDISK $SFDISK_OPTS --wipe=always --label=dos ${TS_DEVICE} ts_fdisk_clean $TS_DEVICE udevadm settle ts_separator "Check content" -$TS_CMD_WIPEFS ${TS_DEVICE} >> $TS_OUTPUT 2>&1 +$TS_CMD_WIPEFS -O OFFSET,TYPE ${TS_DEVICE} >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -57,7 +57,7 @@ echo ',,L' | $TS_CMD_SFDISK $SFDISK_OPTS --label=dos ${TS_DEVICE} >> $TS_OUTPUT ts_fdisk_clean $TS_DEVICE udevadm settle ts_separator "Check content" -$TS_CMD_WIPEFS ${TS_DEVICE} >> $TS_OUTPUT 2>&1 +$TS_CMD_WIPEFS -O OFFSET,TYPE ${TS_DEVICE} >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -72,7 +72,7 @@ echo ',,L' | $TS_CMD_SFDISK $SFDISK_OPTS --wipe=always --label=dos ${TS_DEVICE} ts_fdisk_clean $TS_DEVICE udevadm settle ts_separator "Check content" -$TS_CMD_WIPEFS ${TS_DEVICE} >> $TS_OUTPUT 2>&1 +$TS_CMD_WIPEFS -O OFFSET,TYPE ${TS_DEVICE} >> $TS_OUTPUT 2>&1 ts_finalize_subtest @@ -92,10 +92,10 @@ ts_separator "Create GPT (again)" echo ',,L' | $TS_CMD_SFDISK --no-reread --wipe-partition=always --label=gpt ${TS_DEVICE} >> $TS_OUTPUT 2>&1 udevadm settle ts_separator "Check content (disk)" -$TS_CMD_WIPEFS ${TS_DEVICE} >> $TS_OUTPUT 2>&1 +$TS_CMD_WIPEFS -O OFFSET,TYPE ${TS_DEVICE} >> $TS_OUTPUT 2>&1 udevadm settle ts_separator "Check content (partition)" -$TS_CMD_WIPEFS ${TS_DEVICE}1 >> $TS_OUTPUT 2>&1 +$TS_CMD_WIPEFS -O OFFSET,TYPE ${TS_DEVICE}1 >> $TS_OUTPUT 2>&1 ts_fdisk_clean $TS_DEVICE ts_finalize_subtest