Skip to content

Commit

Permalink
test/e2e: fix vm-setup for single node test VMs.
Browse files Browse the repository at this point in the history
Do not expect unconditionally a non-empty EXTRA_ARGS. It will
be empty when we generate a single node VM.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub authored and askervin committed Mar 6, 2025
1 parent 74c95ab commit 6da55f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/lib/vm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ vm-setup() {
CPU=$(echo $VM_QEMU_CPUMEM | sed 's/MACHINE:.*CPU:-smp \([^|]*\).*/\1/g')
MEM=$(echo $VM_QEMU_CPUMEM | sed 's/MACHINE:.*CPU:.*MEM:-m \([^|]*\).*/\1/g')
EXTRA_ARGS=$(echo $VM_QEMU_CPUMEM | sed 's/MACHINE:.*CPU:.*MEM:.*EXTRA:\([^|]*\).*/\1/g')
EXTRA_ARGS+=", \"-monitor\", \"unix:monitor.sock,server,nowait\""
EXTRA_ARGS+="${EXTRA_ARGS:+,} \"-monitor\", \"unix:monitor.sock,server,nowait\""

VM_MONITOR="(cd \"$output_dir\" && socat STDIO unix-connect:monitor.sock)"

Expand Down

0 comments on commit 6da55f6

Please sign in to comment.