summaryrefslogtreecommitdiffstats
path: root/test/parser
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2019-11-01 07:18:08 +0800
committerJeremy Kerr <jk@ozlabs.org>2019-11-29 13:54:10 +0800
commit76e97c5d9dab40236a589cd96a69967d3ef17cab (patch)
treebd4a6475c6bb2a3872cf2ceab978552f3505b23e /test/parser
parent61ede5e0bea7d999acfdda9931e5c1f3c13c0694 (diff)
downloadtalos-petitboot-76e97c5d9dab40236a589cd96a69967d3ef17cab.tar.gz
talos-petitboot-76e97c5d9dab40236a589cd96a69967d3ef17cab.zip
discover/grub2: test for (ignored) --no-floppy argument
--no-floppy is used almost everywhere, so add it to the tests. The code will already ignore unknown arguments, but ensure that this works OK. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser')
-rw-r--r--test/parser/test-grub2-search-args.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parser/test-grub2-search-args.c b/test/parser/test-grub2-search-args.c
index ffce853..0eb5762 100644
--- a/test/parser/test-grub2-search-args.c
+++ b/test/parser/test-grub2-search-args.c
@@ -9,8 +9,10 @@
search a
search --set=v1 b
search --set v2 c
+search --set=v3 --no-floppy d
+search --no-floppy --set=v4 e
-menuentry $root$v1$v2 {
+menuentry $root$v1$v2$v3$v4 {
linux /vmlinux
}
@@ -29,5 +31,5 @@ void run_test(struct parser_test *test)
check_boot_option_count(ctx, 1);
opt = get_boot_option(ctx, 0);
- check_name(opt, "abc");
+ check_name(opt, "abcde");
}
OpenPOWER on IntegriCloud