From: Glenn Washburn Date: Tue, 15 Aug 2023 03:33:51 +0000 (-0500) Subject: tests/util/grub-shell: Allow explicitly using other serial ports for output X-Git-Tag: grub-2.12~90 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=846829aca8ce3f89618e20af1abe4b84958b3fe7;p=thirdparty%2Fgrub.git 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 Reviewed-by: Daniel Kiper --- diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 29c7e936e..715e1c2e6 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -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" ;;