X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Futils.c;h=40737c4f17c8ef6dd0ca00b8ace225f60c7caf3d;hp=7af4df7397970e6b97c0794b64cb6f647434cab6;hb=e28232f4b8941ccd151abaaae3f18c32400436f3;hpb=b201464a18c990ea6df0f2878e532618d4936c53 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;