test/parser: Check for full URLs in parser tests
[petitboot] / test / parser / test-pxe-single.c
index 65e30516f4f01b494796d629462cea288348b820..56c404cd98203fb8cb6afb816a26598e838e8969 100644 (file)
@@ -15,8 +15,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_url(test, "tftp://host/dir/conf.txt");
+
+       test_set_event_source(test);
+       test_set_event_param(test->ctx->event, "pxeconffile",
+                       "tftp://host/dir/conf.txt");
+
        test_run_parser(test, "pxe");
 
        ctx = test->ctx;