]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-pxe-pathprefix-discover.c
Change parser interface to allow stat
[petitboot] / test / parser / test-pxe-pathprefix-discover.c
index de2feace6ff1962259ced939e08318f36d9dddef..8048961824a7a7b6cd632354b856aa8f9fb73ac0 100644 (file)
@@ -15,7 +15,8 @@ void run_test(struct parser_test *test)
        struct discover_boot_option *opt;
        struct discover_context *ctx;
 
-       test_read_conf_embedded_url(test, "tftp://host/path/to/C0A8");
+       test_read_conf_embedded_url(test,
+                       "tftp://host/path/to/pxelinux.cfg/C0A8");
 
        test_set_event_source(test);
        test_set_event_param(test->ctx->event, "ip", "192.168.0.1");
@@ -34,5 +35,6 @@ void run_test(struct parser_test *test)
 
        check_resolved_url_resource(opt->boot_image,
                        "tftp://host/path/to/./kernel");
-       check_resolved_url_resource(opt->initrd, "tftp://host/initrd");
+       check_resolved_url_resource(opt->initrd,
+                       "tftp://host/path/to/initrd");
 }