]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-shell: Allow explicitly using other serial ports for output
authorGlenn Washburn <development@efficientek.com>
Tue, 15 Aug 2023 03:33:51 +0000 (22:33 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 31 Aug 2023 14:35:57 +0000 (16:35 +0200)
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>
tests/util/grub-shell.in

index 29c7e936e740ae1d72a7b13a56e1a468ef9948bc..715e1c2e67b3db4645268c7fcb5d5dd8b6e87e88 100644 (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" ;;