]> xenbits.xensource.com Git - xen.git/commitdiff
automation: make console options configurable via variables
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 15 May 2023 21:41:18 +0000 (14:41 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Mon, 15 May 2023 21:46:48 +0000 (14:46 -0700)
This makes the test script easier reusable for different runners, where
console may be connected differently. Include both console= option and
configuration for specific chosen console too (like com1= here) in the
'CONSOLE_OPTS' variable.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
automation/gitlab-ci/test.yaml
automation/scripts/qubes-x86-64.sh

index 9c0e08d4560740d484cd9f4c84d3b5549d6598cd..d790bd36c791ad3d25f257bad843edae2d36d943 100644 (file)
@@ -96,6 +96,7 @@
     LOGFILE: smoke-test.log
     PCIDEV: "03:00.0"
     PCIDEV_INTR: "MSI-X"
+    CONSOLE_OPTS: "console=com1 com1=115200,8n1"
   artifacts:
     paths:
       - smoke.serial
index 4f17f1dd0b056fc2e13032dfcdaf1b06576c8d1b..98137bb7720c262af08a016938f279c87c98f489 100755 (executable)
@@ -189,7 +189,7 @@ TFTP=/scratch/gitlab-runner/tftp
 CONTROLLER=control@thor.testnet
 
 echo "
-multiboot2 (http)/gitlab-ci/xen console=com1 com1=115200,8n1 loglvl=all guest_loglvl=all dom0_mem=4G $extra_xen_opts
+multiboot2 (http)/gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G $extra_xen_opts
 module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0
 module2 (http)/gitlab-ci/initrd-dom0
 " > $TFTP/grub.cfg