]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-pxe-initrd-in-append.c
test/parser: Update test cases as per new parser requesting conf files
[petitboot] / test / parser / test-pxe-initrd-in-append.c
index 3c1c217f4899d6335fb5fc453dc855a359b90fdd..6cd2ef49311ca031b804598aa1cde03acd667fc6 100644 (file)
@@ -14,8 +14,12 @@ void run_test(struct parser_test *test)
        struct discover_boot_option *opt;
        struct discover_context *ctx;
 
-       test_read_conf_embedded(test);
-       test_set_conf_source(test, "tftp://host/dir/conf.txt");
+       test_read_conf_embedded(test, "conf.txt");
+
+       test_set_event_source(test);
+       test_set_event_param(test->ctx->event, "conffile",
+                       "tftp://host/dir/conf.txt");
+
        test_run_parser(test, "pxe");
 
        ctx = test->ctx;