test/lib/setup: Don't rely on IFS to properly separate qemu arguments

...this gets needlessly annoying while playing with test cases.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-01-26 07:32:56 +01:00
parent b8307a0a88
commit 4ac48b6eff

View file

@ -53,13 +53,13 @@ setup_passt() {
sleep 1
pane_run GUEST './qrap 5 kvm -m '${VMEM}' -cpu host -smp '${VCPUS} \
'-kernel' "/boot/vmlinuz-$(uname -r)" \
'-initrd mbuto.img -nographic -serial stdio' \
'-nodefaults ' \
'-append "console=ttyS0 mitigations=off apparmor=0 ' \
' -kernel ' "/boot/vmlinuz-$(uname -r)" \
' -initrd mbuto.img -nographic -serial stdio' \
' -nodefaults' \
' -append "console=ttyS0 mitigations=off apparmor=0 ' \
'virtio-net.napi_tx=1"' \
"-device virtio-net-pci,netdev=hostnet0,x-txburst=16384"\
"-netdev socket,fd=5,id=hostnet0"
" -device virtio-net-pci,netdev=hostnet0,x-txburst=16384" \
" -netdev socket,fd=5,id=hostnet0"
pane_wait GUEST
}
@ -146,13 +146,13 @@ setup_passt_in_ns() {
sleep 1
pane_run GUEST './qrap 5 kvm -m '${VMEM}' -cpu host -smp '${VCPUS} \
'-kernel' "/boot/vmlinuz-$(uname -r)" \
'-initrd mbuto.img -nographic -serial stdio' \
'-nodefaults ' \
'-append "console=ttyS0 mitigations=off apparmor=0 ' \
' -kernel ' "/boot/vmlinuz-$(uname -r)" \
' -initrd mbuto.img -nographic -serial stdio' \
' -nodefaults' \
' -append "console=ttyS0 mitigations=off apparmor=0 ' \
'virtio-net.napi_tx=1"' \
"-device virtio-net-pci,netdev=hostnet0,x-txburst=262144"\
"-netdev socket,fd=5,id=hostnet0"
" -device virtio-net-pci,netdev=hostnet0,x-txburst=524288" \
" -netdev socket,fd=5,id=hostnet0"
pane_wait GUEST
}
@ -227,21 +227,21 @@ setup_two_guests() {
pane_wait GUEST_2
pane_run GUEST_1 './qrap 5 kvm -m '${VMEM}' -cpu host -smp '${VCPUS} \
'-kernel' "/boot/vmlinuz-$(uname -r)" \
'-initrd mbuto.img -nographic -serial stdio' \
'-nodefaults ' \
'-append "console=ttyS0 mitigations=off apparmor=0 ' \
' -kernel ' "/boot/vmlinuz-$(uname -r)" \
' -initrd mbuto.img -nographic -serial stdio' \
' -nodefaults' \
' -append "console=ttyS0 mitigations=off apparmor=0 ' \
'virtio-net.napi_tx=1"' \
"-device virtio-net-pci,netdev=hostnet0,x-txburst=16384"\
"-netdev socket,fd=5,id=hostnet0"
" -device virtio-net-pci,netdev=hostnet0,x-txburst=16384" \
" -netdev socket,fd=5,id=hostnet0"
pane_run GUEST_2 './qrap 5 kvm -m '${VMEM}' -cpu host -smp '${VCPUS} \
'-kernel' "/boot/vmlinuz-$(uname -r)" \
'-initrd mbuto_2.img -nographic -serial stdio' \
'-nodefaults ' \
'-append "console=ttyS0 mitigations=off apparmor=0 ' \
' -kernel ' "/boot/vmlinuz-$(uname -r)" \
' -initrd mbuto_2.img -nographic -serial stdio' \
' -nodefaults' \
' -append "console=ttyS0 mitigations=off apparmor=0 ' \
'virtio-net.napi_tx=1"' \
"-device virtio-net-pci,netdev=hostnet0,x-txburst=16384"\
"-netdev socket,fd=5,id=hostnet0"
" -device virtio-net-pci,netdev=hostnet0,x-txburst=16384" \
" -netdev socket,fd=5,id=hostnet0"
pane_wait GUEST_1
pane_wait GUEST_2
}