X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Ftest-pxe-ipappend.c;h=3fec6a7d5f2d07f23cdbfd650f52612f5c7edc3e;hp=4719b5cfacf293a763888bfe1e4bf1292619c94a;hb=9c33c54f7b431074a7d0daddce34140044aaadf6;hpb=ba1633025d93d7b41bda9bd32fa1d2337c7c4365;ds=sidebyside diff --git a/test/parser/test-pxe-ipappend.c b/test/parser/test-pxe-ipappend.c index 4719b5c..3fec6a7 100644 --- a/test/parser/test-pxe-ipappend.c +++ b/test/parser/test-pxe-ipappend.c @@ -1,5 +1,6 @@ #include "parser-test.h" +#include "network.h" #if 0 /* PARSER_EMBEDDED_CONFIG */ default linux @@ -20,8 +21,7 @@ void run_test(struct parser_test *test) test_set_event_source(test); test_set_event_param(test->ctx->event, "pxeconffile", "tftp://host/dir/conf.txt"); - test_set_event_param(test->ctx->event, "mac", - "01:02:03:04:05:06"); + test_set_event_device(test->ctx->event, "em1"); test_run_parser(test, "pxe"); @@ -31,5 +31,5 @@ void run_test(struct parser_test *test) opt = get_boot_option(ctx, 0); check_name(opt, "linux"); - check_args(opt, "command line BOOTIF=01:02:03:04:05:06"); + check_args(opt, "command line BOOTIF=01-01-02-03-04-05-06"); }