tests/util/grub-shell: Allow explicitly using other serial ports for output

While here, move "-qemu=*" case to be next to the "--qemu-opts=*" case.
This causes no change in logic, but is more logically located.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn 2023-08-14 22:33:51 -05:00 committed by Daniel Kiper
parent ee2349ef65
commit 846829aca8

View File

@ -259,8 +259,6 @@ for option in "$@"; do
--mkrescue-arg=*)
mkr=`echo "$option" | sed -e 's/--mkrescue-arg=//' -e 's/,/ /g'`
mkrescue_args="$mkrescue_args $mkr" ;;
--qemu=*)
qemu=`echo "$option" | sed -e 's/--qemu=//' -e 's/,/ /g'`;;
--pseries)
qemu=qemu-system-ppc64
serial_port=ieee1275/hvterm
@ -269,6 +267,10 @@ for option in "$@"; do
trim=1
pseries=y
;;
--serial=*)
serial_port=`echo "$option" | sed -e 's/--serial=//'`;;
--qemu=*)
qemu=`echo "$option" | sed -e 's/--qemu=//' -e 's/,/ /g'`;;
--qemu-opts=*)
qs=`echo "$option" | sed -e 's/--qemu-opts=//'`
qemuopts="$qemuopts $qs" ;;