diff options
author | Alan Dunn <amdunn@google.com> | 2016-03-02 08:59:02 -0800 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-03-15 14:10:22 +1100 |
commit | c19daa69bc15e73b7ebf79d5280ba62c86c20b6f (patch) | |
tree | 2cb1d9620a3e8d96fc3d3285b568e0e126591c98 /test/parser/Makefile.am | |
parent | 939660528bf1568c55b6dcf982cc9020c1dbcdd2 (diff) | |
download | talos-petitboot-c19daa69bc15e73b7ebf79d5280ba62c86c20b6f.tar.gz talos-petitboot-c19daa69bc15e73b7ebf79d5280ba62c86c20b6f.zip |
discover/grub2: Fix handling of positional parameters
Positional parameters are set in the environment with '$' prepended to
the name. This causes lookups to fail because parameter lookups don't
include the '$'.
TESTED:
Added a test that covers positional parameters in GRUB2 parser.
Build succeeds, tests pass.
Bootstrapped-by: Nancy Yuen <yuenn@google.com>
Signed-off-by: Alan Dunn <amdunn@google.com>
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser/Makefile.am')
-rw-r--r-- | test/parser/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parser/Makefile.am b/test/parser/Makefile.am index e4f9b9c..9a6be6d 100644 --- a/test/parser/Makefile.am +++ b/test/parser/Makefile.am @@ -26,6 +26,7 @@ parser_TESTS = \ test/parser/test-grub2-multiple-resolve \ test/parser/test-grub2-multiple-id \ test/parser/test-grub2-single-line-if \ + test/parser/test-grub2-pos-param \ test/parser/test-grub2-load-env \ test/parser/test-grub2-save-env \ test/parser/test-grub2-save-env-dash-f \ |