]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-pxe-empty.c
test/parser: Update test cases as per new parser requesting conf files
[petitboot] / test / parser / test-pxe-empty.c
index eb3b75877e6bfff0b851d821fd2db7d35e2f1a72..fbc1d8a7d0ef2f8fc7dc3ac9b47cfdb7fbdb571e 100644 (file)
@@ -9,8 +9,12 @@ void run_test(struct parser_test *test)
 {
        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;