diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-02-27 13:54:32 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-02-27 13:54:32 +0800 |
commit | f94ca3311758854670d25ba4e7853d76c2113402 (patch) | |
tree | 8ea7d571a5c986bb93f11b03f6a8eec8e74cd057 /test/parser/test-pxe-pathprefix-discover.c | |
parent | 922756a3aefd8ba5c5675efd37df9f43938cf432 (diff) | |
download | petitboot-f94ca3311758854670d25ba4e7853d76c2113402.zip petitboot-f94ca3311758854670d25ba4e7853d76c2113402.tar.gz |
discover/pxe: pxe parser should only treat "::" paths as absolute
PXELinux treats all paths as relative, requiring a "::/path" syntax for
truly absolute URLs.
This change implements the same behaviour in petitboot, and updates the
testcases to suit.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/test-pxe-pathprefix-discover.c')
-rw-r--r-- | test/parser/test-pxe-pathprefix-discover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parser/test-pxe-pathprefix-discover.c b/test/parser/test-pxe-pathprefix-discover.c index 9cb44c8..8048961 100644 --- a/test/parser/test-pxe-pathprefix-discover.c +++ b/test/parser/test-pxe-pathprefix-discover.c @@ -36,5 +36,5 @@ 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"); + "tftp://host/path/to/initrd"); } |