@@ -84,7 +84,10 @@ qemu-system-x86_64 \
-monitor none -serial stdio \
-nographic \
-device virtio-net-pci,netdev=n0 \
- -netdev user,id=n0,tftp=binaries,bootfile=/pxelinux.0 |& tee smoke.serial
+ -netdev user,id=n0,tftp=binaries,bootfile=/pxelinux.0 |& \
+ # Remove carriage returns from the stdout output, as gitlab
+ # interface chokes on them
+ tee smoke.serial | sed 's/\r//'
set -e
(grep -q "Domain-0" smoke.serial && grep -q "BusyBox" smoke.serial) || exit 1
@@ -91,7 +91,8 @@ timeout -k 1 720 \
-no-reboot \
-device virtio-net-pci,netdev=n0 \
-netdev user,id=n0,tftp=./ \
- -bios /usr/lib/u-boot/qemu_arm/u-boot.bin |& tee ${serial_log}
+ -bios /usr/lib/u-boot/qemu_arm/u-boot.bin |& \
+ tee ${serial_log} | sed 's/\r//'
set -e
(grep -q "Domain-0" ${serial_log} && grep -q "^/ #" ${serial_log}) || exit 1
@@ -104,7 +104,8 @@ timeout -k 1 720 \
-no-reboot \
-device virtio-net-pci,netdev=n0 \
-netdev user,id=n0,tftp=binaries \
- -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial
+ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& \
+ tee smoke.serial | sed 's/\r//'
set -e
(grep -q "Domain-0" smoke.serial && grep -q "BusyBox" smoke.serial) || exit 1
@@ -137,7 +137,8 @@ timeout -k 1 240 \
-no-reboot \
-device virtio-net-pci,netdev=n0 \
-netdev user,id=n0,tftp=./ \
- -bios /usr/lib/u-boot/qemu_arm/u-boot.bin |& tee ${serial_log}
+ -bios /usr/lib/u-boot/qemu_arm/u-boot.bin |& \
+ tee ${serial_log} | sed 's/\r//'
set -e
(grep -q "${dom0_prompt}" ${serial_log} && grep -q "${passed}" ${serial_log}) || exit 1
@@ -201,7 +201,8 @@ timeout -k 1 240 \
-no-reboot \
-device virtio-net-pci,netdev=n0 \
-netdev user,id=n0,tftp=binaries \
- -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial
+ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& \
+ tee smoke.serial | sed 's/\r//'
set -e
(grep -q "^Welcome to Alpine Linux" smoke.serial && grep -q "${passed}" smoke.serial) || exit 1
@@ -13,7 +13,7 @@ qemu-system-riscv64 \
-nographic \
-m 2g \
-kernel binaries/xen \
- |& tee smoke.serial
+ |& tee smoke.serial | sed 's/\r//'
set -e
(grep -q "All set up" smoke.serial) || exit 1
@@ -61,7 +61,8 @@ timeout -k 1 120 \
-no-reboot \
-device virtio-net-pci,netdev=n0 \
-netdev user,id=n0,tftp=binaries \
- -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial
+ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& \
+ tee smoke.serial | sed 's/\r//'
set -e
(grep -q "${passed}" smoke.serial) || exit 1
@@ -200,7 +200,7 @@ cp -f binaries/dom0-rootfs.cpio.gz $TFTP/initrd-dom0
# the console
mkfifo /tmp/console-stdin
cat /tmp/console-stdin |\
-ssh $CONTROLLER console | tee smoke.serial &
+ssh $CONTROLLER console | tee smoke.serial | sed 's/\r//' &
# start the system pointing at gitlab-ci predefined config
ssh $CONTROLLER gitlabci poweron
@@ -136,7 +136,7 @@ cd $START
# connect to serial
set +e
stty -F /dev/ttyUSB0 115200
-timeout -k 1 120 nohup sh -c "cat /dev/ttyUSB0 | tee smoke.serial"
+timeout -k 1 120 nohup sh -c "cat /dev/ttyUSB0 | tee smoke.serial | sed 's/\r//'"
# stop the board
cd /scratch/gitlab-runner