test/parser: Update test cases as per new parser requesting conf files
[petitboot] / test / parser / test-pxe-single.c
index 65e30516f4f01b494796d629462cea288348b820..ccb4d5c6462efc721156ecd4725f4adbd14e23ff 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(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;