Skip to content

Commit a992688

Browse files
authored
Merge branch 'main' into semver
2 parents 51592e9 + 10dfa03 commit a992688

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

tests/integration_tests/functional/test_api.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import platform
99
import re
1010
import resource
11-
import time
1211
from pathlib import Path
1312

1413
import pytest
@@ -1018,12 +1017,9 @@ def test_api_balloon(uvm_nano):
10181017
)
10191018

10201019
# Start the microvm.
1020+
test_microvm.add_net_iface()
10211021
test_microvm.start()
10221022

1023-
# Give the balloon driver time to initialize.
1024-
# 500 ms is the maximum acceptable boot time.
1025-
time.sleep(0.5)
1026-
10271023
# But updating should be OK.
10281024
test_microvm.api.balloon.patch(amount_mib=4)
10291025

tests/integration_tests/functional/test_cpu_features_x86_64.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def test_cpu_cpuid_snapshot(microvm_factory, guest_kernel, rootfs, cpu_template_
541541
"""
542542
cpu_template_name = get_cpu_template_name(cpu_template_any)
543543
if cpu_template_name not in MSR_SUPPORTED_TEMPLATES:
544-
pytest.skip("This test does not support {cpu_template_name} template.")
544+
pytest.skip(f"This test does not support {cpu_template_name} template.")
545545

546546
shared_names = SNAPSHOT_RESTORE_SHARED_NAMES
547547

@@ -611,7 +611,7 @@ def test_cpu_cpuid_restore(microvm_factory, guest_kernel, cpu_template_any):
611611
"""
612612
cpu_template_name = get_cpu_template_name(cpu_template_any)
613613
if cpu_template_name not in MSR_SUPPORTED_TEMPLATES:
614-
pytest.skip("This test does not support {cpu_template_name} template.")
614+
pytest.skip(f"This test does not support {cpu_template_name} template.")
615615

616616
shared_names = SNAPSHOT_RESTORE_SHARED_NAMES
617617
snapshot_artifacts_dir = (
@@ -646,8 +646,8 @@ def test_cpu_template(uvm_plain_any, cpu_template_any, microvm_factory):
646646
supported CPU templates.
647647
"""
648648
cpu_template_name = get_cpu_template_name(cpu_template_any)
649-
if cpu_template_name not in ["T2", "T2S", "SPR_TO_T2_5.10", "SPR_TO_T2_6.1" "C3"]:
650-
pytest.skip("This test does not support {cpu_template_name} template.")
649+
if cpu_template_name not in ["T2", "T2S", "SPR_TO_T2_5.10", "SPR_TO_T2_6.1", "C3"]:
650+
pytest.skip(f"This test does not support {cpu_template_name} template.")
651651

652652
test_microvm = uvm_plain_any
653653
test_microvm.spawn()

tests/integration_tests/functional/test_net.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,12 @@ def test_tap_offload(uvm_any):
108108
# Start a UDP server in the guest
109109
# vm.ssh.check_output(f"nohup socat UDP-LISTEN:{port} - > {out_filename} &")
110110
vm.ssh.check_output(
111-
f"nohup socat UDP4-LISTEN:{port} OPEN:{out_filename},creat > /dev/null 2>&1 &"
111+
f"nohup socat UDP4-LISTEN:{port} CREATE:{out_filename} > /dev/null 2>&1 &"
112112
)
113113

114+
# wait for socat server to spin up
115+
time.sleep(1)
116+
114117
# Try to send a UDP message from host with UDP offload enabled
115118
vm.netns.check_output(f"python3 ./host_tools/udp_offload.py {vm.ssh.host} {port}")
116119

0 commit comments

Comments
 (0)