Skip to content

Commit cf3a74e

Browse files
committed
Fix boottime tests
Renamed the boottime microvm fixtures, so that the tests use the old PIO-based boot time notification on x86. Also created new folders for these fixtures in S3: old_minimal and old_minimal_with_initrd. This had to be done because the fixtures were pointing to artifacts that are used in mainline, with the new MMIO boot-timer device. Signed-off-by: alindima <[email protected]>
1 parent 7cd0a64 commit cf3a74e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tests/integration_tests/performance/test_boottime.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,36 @@
2222
TIMESTAMP_LOG_REGEX = r'Guest-boot-time\s+\=\s+(\d+)\s+us'
2323

2424

25-
def test_boottime_no_network(test_microvm_with_boottime):
25+
def test_boottime_no_network(test_microvm_with_old_boottime):
2626
"""Check guest boottime of microvm without network."""
27-
_ = _configure_vm(test_microvm_with_boottime)
27+
_ = _configure_vm(test_microvm_with_old_boottime)
2828
time.sleep(0.4)
29-
boottime_us = _test_microvm_boottime(test_microvm_with_boottime.log_data)
29+
boottime_us = _test_microvm_boottime(
30+
test_microvm_with_old_boottime.log_data)
3031
print("Boot time with no network is: " + str(boottime_us) + " us")
3132

3233

3334
def test_boottime_with_network(
34-
test_microvm_with_boottime,
35+
test_microvm_with_old_boottime,
3536
network_config
3637
):
3738
"""Check guest boottime of microvm with network."""
38-
_tap = _configure_vm(test_microvm_with_boottime, {
39+
_tap = _configure_vm(test_microvm_with_old_boottime, {
3940
"config": network_config, "iface_id": "1"
4041
})
4142
time.sleep(0.4)
42-
boottime_us = _test_microvm_boottime(test_microvm_with_boottime.log_data)
43+
boottime_us = _test_microvm_boottime(
44+
test_microvm_with_old_boottime.log_data)
4345
print("Boot time with network configured is: " + str(boottime_us) + " us")
4446

4547

4648
def test_initrd_boottime(
47-
test_microvm_with_initrd):
49+
test_microvm_with_old_initrd):
4850
"""Check guest boottime of microvm with initrd."""
49-
_tap = _configure_vm(test_microvm_with_initrd, initrd=True)
51+
_tap = _configure_vm(test_microvm_with_old_initrd, initrd=True)
5052
time.sleep(0.8)
5153
boottime_us = _test_microvm_boottime(
52-
test_microvm_with_initrd.log_data, max_time_us=INITRD_BOOT_TIME_US)
54+
test_microvm_with_old_initrd.log_data, max_time_us=INITRD_BOOT_TIME_US)
5355
print("Boot time with initrd is: " + str(boottime_us) + " us")
5456

5557

0 commit comments

Comments
 (0)