tools/bootconfig: Support mixed value and subkey test cases

Update test case to support mixed value and subkey on a key.

Link: https://lkml.kernel.org/r/162262195568.264090.12431204030021242896.stgit@devnote2

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
Masami Hiramatsu 2021-06-02 17:19:15 +09:00 committed by Steven Rostedt (VMware)
parent e5efaeb8a8
commit 29e1c1ad3f
7 changed files with 14 additions and 6 deletions

View File

@ -1,3 +0,0 @@
key.subkey = value
# We can not override pre-defined subkeys with value
key := value

View File

@ -1,3 +0,0 @@
key = value
# We can not override pre-defined value with subkey
key.subkey := value

View File

@ -0,0 +1,4 @@
key = foo
keyx.subkey = value
key += bar

View File

@ -0,0 +1,6 @@
# mixed key and subkeys with braces
key = value
key {
subkey1
subkey2 = foo
}

View File

@ -0,0 +1,4 @@
key.foo = bar
key = value
# mixed key value can be overridden
key := value2