From: Karel Zak Date: Fri, 17 Feb 2017 09:28:53 +0000 (+0100) Subject: tests: (sfdisk) tell kernel about new partition X-Git-Tag: v2.30-rc1~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc56447177946aed26a1c71fd1667bf76ce01bd;p=thirdparty%2Futil-linux.git tests: (sfdisk) tell kernel about new partition Signed-off-by: Karel Zak --- diff --git a/tests/expected/sfdisk/wipe-partition b/tests/expected/sfdisk/wipe-partition index a73b399771..62051b262d 100644 --- a/tests/expected/sfdisk/wipe-partition +++ b/tests/expected/sfdisk/wipe-partition @@ -42,6 +42,8 @@ Device Start End Sectors Size Type 1 2048 102366 100319 49M Linux filesystem The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. =====Check content (disk)================================ offset type diff --git a/tests/ts/sfdisk/wipe b/tests/ts/sfdisk/wipe index 005fe5b930..feb22b14ff 100755 --- a/tests/ts/sfdisk/wipe +++ b/tests/ts/sfdisk/wipe @@ -89,7 +89,7 @@ ts_separator "Wipe whole-disk device" $TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null udevadm settle ts_separator "Create GPT (again)" -echo ',,L' | $TS_CMD_SFDISK $SFDISK_OPTS --wipe-partition=always --label=gpt ${TS_DEVICE} >> $TS_OUTPUT 2>&1 +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