]> git.ipfire.org Git - thirdparty/grub.git/commit
tests: Do not occlude grub-shell return code
authorGlenn Washburn <development@efficientek.com>
Wed, 13 Oct 2021 00:39:59 +0000 (19:39 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 14 Oct 2021 12:48:45 +0000 (14:48 +0200)
commite024558d468d5ea7c79e93e791fcf51d0d1b3dd2
treebfda3110062272b5303354a1bf1c285b24f6c94f
parent9bbcfb71ce497c2f72603b10fff399e0f9b28d8b
tests: Do not occlude grub-shell return code

The script grub-shell does the bulk of the testing. If it returns an error
code, that means that the test failed and the test should immediately exit
with that error code. When grub-shell is used as a non-terminating command
in a pipeline, e.g. when data needs to be extracted from its output, its
error code will be occluded by the last command in the pipeline. Refactor
tests so that the shell will error with the exit code of grub-shell by
breaking up pipelines such that grub-shell is always the last command in
the pipeline that it is used in.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/ahci_test.in
tests/ehci_test.in
tests/grub_cmd_date.in
tests/grub_script_expansion.in
tests/ohci_test.in
tests/partmap_test.in
tests/uhci_test.in