Skip to content

Commit

Permalink
tools/bootconfig: Support mixed value and subkey test cases
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masami Hiramatsu authored and Steven Rostedt (VMware) committed Jun 10, 2021
1 parent e5efaeb commit 29e1c1a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
3 changes: 0 additions & 3 deletions tools/bootconfig/samples/bad-override.bconf

This file was deleted.

3 changes: 0 additions & 3 deletions tools/bootconfig/samples/bad-override2.bconf

This file was deleted.

4 changes: 4 additions & 0 deletions tools/bootconfig/samples/good-mixed-append.bconf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
key = foo
keyx.subkey = value
key += bar

6 changes: 6 additions & 0 deletions tools/bootconfig/samples/good-mixed-kv3.bconf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# mixed key and subkeys with braces
key = value
key {
subkey1
subkey2 = foo
}
4 changes: 4 additions & 0 deletions tools/bootconfig/samples/good-mixed-override.bconf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
key.foo = bar
key = value
# mixed key value can be overridden
key := value2

0 comments on commit 29e1c1a

Please sign in to comment.