diff options
author | Sebastian Rasmussen | 2016-05-29 22:11:52 +0200 |
---|---|---|
committer | Sebastian Rasmussen | 2016-05-31 23:51:07 +0200 |
commit | d1b7bfe5068d4aa3ee37d3755f0020aaa839b087 (patch) | |
tree | 466410a65e8cd000364530b5f6c26582dc9ed5ff /tests/ts/sfdisk | |
parent | misc: Fix various typos (diff) | |
download | kernel-qcow2-util-linux-d1b7bfe5068d4aa3ee37d3755f0020aaa839b087.tar.gz kernel-qcow2-util-linux-d1b7bfe5068d4aa3ee37d3755f0020aaa839b087.tar.xz kernel-qcow2-util-linux-d1b7bfe5068d4aa3ee37d3755f0020aaa839b087.zip |
fdisk: Fix typo RequiredPartiton -> RequiredPartition
This typo fix is backwards compatible in that fdisk will accept both
the GPT attribute RequiredPartition and RequiredPartiton with the typo.
Update documentation and tests to all use the new attribute name.
Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Diffstat (limited to 'tests/ts/sfdisk')
-rwxr-xr-x | tests/ts/sfdisk/gpt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ts/sfdisk/gpt b/tests/ts/sfdisk/gpt index 4f802de58..9656bf964 100755 --- a/tests/ts/sfdisk/gpt +++ b/tests/ts/sfdisk/gpt @@ -76,7 +76,15 @@ ts_finalize_subtest ts_init_subtest "attrs" -$TS_CMD_SFDISK --part-attrs ${TS_DEVICE} 2 "RequiredPartiton,NoBlockIOProtocol,48,51" >> $TS_OUTPUT 2>&1 +$TS_CMD_SFDISK --part-attrs ${TS_DEVICE} 2 "RequiredPartition,NoBlockIOProtocol,48,51" >> $TS_OUTPUT 2>&1 +$TS_CMD_SFDISK --part-attrs ${TS_DEVICE} 2 >> $TS_OUTPUT 2>&1 +echo -e 'x\nD\n' | $TS_CMD_FDISK ${TS_DEVICE} >> $TS_OUTPUT 2>&1 +ts_fdisk_clean $TS_DEVICE +udevadm settle +ts_finalize_subtest + +ts_init_subtest "attrs-with-typo" +$TS_CMD_SFDISK --part-attrs ${TS_DEVICE} 2 "RequiredPartiton,NoBlockIOProtocol,48,51" >> $TS_OUTPUT 2>&1 $TS_CMD_SFDISK --part-attrs ${TS_DEVICE} 2 >> $TS_OUTPUT 2>&1 echo -e 'x\nD\n' | $TS_CMD_FDISK ${TS_DEVICE} >> $TS_OUTPUT 2>&1 ts_fdisk_clean $TS_DEVICE |