diff options
author | Neelesh Gupta <neelegup@linux.vnet.ibm.com> | 2013-10-28 12:45:59 +0530 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-06 16:34:26 +0800 |
commit | cc28b17bb59411e6031a8273b784e9d1d3a9490d (patch) | |
tree | 79c4b48746a3541a1b95347dc413e9f8ca387ec6 /test/parser/test-yaboot-root-global.c | |
parent | b8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf (diff) | |
download | talos-petitboot-cc28b17bb59411e6031a8273b784e9d1d3a9490d.tar.gz talos-petitboot-cc28b17bb59411e6031a8273b784e9d1d3a9490d.zip |
test/parser: Update test cases as per new parser requesting conf files
Update the parser test code/cases as per new prototyping of parse()
function which doesn't require buf and len to be passed from the caller,
instead reading the configuration data either embedded or from file to
a parser's known conffile.
Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/test-yaboot-root-global.c')
-rw-r--r-- | test/parser/test-yaboot-root-global.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parser/test-yaboot-root-global.c b/test/parser/test-yaboot-root-global.c index 6d8da85..c5e7698 100644 --- a/test/parser/test-yaboot-root-global.c +++ b/test/parser/test-yaboot-root-global.c @@ -16,7 +16,8 @@ void run_test(struct parser_test *test) struct discover_boot_option *opt; struct discover_context *ctx; - test_read_conf_embedded(test); + test_read_conf_embedded(test, "/etc/yaboot.conf"); + test_run_parser(test, "yaboot"); ctx = test->ctx; |