summaryrefslogtreecommitdiffstats
path: root/test/parser/test-pxe-pathprefix-discover.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-02-27 13:54:32 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-02-27 13:54:32 +0800
commitf94ca3311758854670d25ba4e7853d76c2113402 (patch)
tree8ea7d571a5c986bb93f11b03f6a8eec8e74cd057 /test/parser/test-pxe-pathprefix-discover.c
parent922756a3aefd8ba5c5675efd37df9f43938cf432 (diff)
downloadtalos-petitboot-f94ca3311758854670d25ba4e7853d76c2113402.tar.gz
talos-petitboot-f94ca3311758854670d25ba4e7853d76c2113402.zip
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.c2
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");
}
OpenPOWER on IntegriCloud