diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-09-27 14:16:10 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-10-01 12:51:59 +0800 |
commit | e28232f4b8941ccd151abaaae3f18c32400436f3 (patch) | |
tree | 2a5b9da5141d64f47fa4eea912ecad39e7e670c6 /test/parser/utils.c | |
parent | bd6e384a0ba2c1464d9270baf829fea932b88224 (diff) | |
download | petitboot-e28232f4b8941ccd151abaaae3f18c32400436f3.zip petitboot-e28232f4b8941ccd151abaaae3f18c32400436f3.tar.gz |
discover: Add test_data member to struct discover_context
We have parsers passing discover_contexts around, which we want to hook
into the test framework. Add a void * member, which the test code can
use to reference the test.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/utils.c')
-rw-r--r-- | test/parser/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parser/utils.c b/test/parser/utils.c index 7af4df7..40737c4 100644 --- a/test/parser/utils.c +++ b/test/parser/utils.c @@ -75,6 +75,7 @@ static struct discover_context *test_create_context(struct parser_test *test) list_init(&ctx->boot_options); ctx->device = test_create_device_simple(test); + ctx->test_data = test; device_handler_add_device(test->handler, ctx->device); return ctx; |