|
22 | 22 | TIMESTAMP_LOG_REGEX = r'Guest-boot-time\s+\=\s+(\d+)\s+us' |
23 | 23 |
|
24 | 24 |
|
25 | | -def test_boottime_no_network(test_microvm_with_boottime): |
| 25 | +def test_boottime_no_network(test_microvm_with_old_boottime): |
26 | 26 | """Check guest boottime of microvm without network.""" |
27 | | - _ = _configure_vm(test_microvm_with_boottime) |
| 27 | + _ = _configure_vm(test_microvm_with_old_boottime) |
28 | 28 | 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) |
30 | 31 | print("Boot time with no network is: " + str(boottime_us) + " us") |
31 | 32 |
|
32 | 33 |
|
33 | 34 | def test_boottime_with_network( |
34 | | - test_microvm_with_boottime, |
| 35 | + test_microvm_with_old_boottime, |
35 | 36 | network_config |
36 | 37 | ): |
37 | 38 | """Check guest boottime of microvm with network.""" |
38 | | - _tap = _configure_vm(test_microvm_with_boottime, { |
| 39 | + _tap = _configure_vm(test_microvm_with_old_boottime, { |
39 | 40 | "config": network_config, "iface_id": "1" |
40 | 41 | }) |
41 | 42 | 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) |
43 | 45 | print("Boot time with network configured is: " + str(boottime_us) + " us") |
44 | 46 |
|
45 | 47 |
|
46 | 48 | def test_initrd_boottime( |
47 | | - test_microvm_with_initrd): |
| 49 | + test_microvm_with_old_initrd): |
48 | 50 | """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) |
50 | 52 | time.sleep(0.8) |
51 | 53 | 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) |
53 | 55 | print("Boot time with initrd is: " + str(boottime_us) + " us") |
54 | 56 |
|
55 | 57 |
|
|
0 commit comments