diff mbox series

[03/14] discover/grub2: test for (ignored) --no-floppy argument

Message ID 20191120024306.16526-4-jk@ozlabs.org
State Accepted
Headers show
Series discover/grub2: Add support for grub2 file specifiers | expand

Commit Message

Jeremy Kerr Nov. 20, 2019, 2:42 a.m. UTC
--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>
---
 test/parser/test-grub2-search-args.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

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");
 }