| commit | 45d73a5d8a98dbabcdf37e2da5ef5b0412244643 | [log] [tgz] |
|---|---|---|
| author | Steven Rostedt <srostedt@redhat.com> | Fri Sep 30 19:44:53 2011 -0400 |
| committer | Steven Rostedt <rostedt@goodmis.org> | Mon Oct 17 11:54:11 2011 -0400 |
| tree | 171cebe896512759e763a9d7bb36efe43455d1d1 | |
| parent | 4ab1cce5bdd87948b75ed4fe4a8629c0f76267ae [diff] |
ktest: Add IF and ELSE to config sections
Add IF keyword to sections within the config. Also added an ELSE
keyword that allows different config options to be set for a given
section.
For example:
TYPE := 1
STATUS := 0
DEFAULTS IF ${TYPE}
[...]
ELSE IF ${STATUS}
[...]
ELSE
[...]
The above will process the first section as $TYPE is true. If it
was false, it would process the last section as $STATUS is false.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>