@@ -117,7 +117,7 @@ def test_config_start_with_api(uvm_plain, vm_config_file):
117
117
"""
118
118
test_microvm = uvm_plain
119
119
vm_config = _configure_vm_from_json (test_microvm , vm_config_file )
120
- test_microvm .spawn ()
120
+ test_microvm .spawn (serial_out_path = None )
121
121
122
122
assert test_microvm .state == "Running"
123
123
@@ -134,7 +134,7 @@ def test_config_start_no_api(uvm_plain, vm_config_file):
134
134
test_microvm = uvm_plain
135
135
_configure_vm_from_json (test_microvm , vm_config_file )
136
136
test_microvm .jailer .extra_args .update ({"no-api" : None })
137
- test_microvm .spawn ()
137
+ test_microvm .spawn (serial_out_path = None )
138
138
139
139
# Get names of threads in Firecracker.
140
140
cmd = f"ps -T --no-headers -p { test_microvm .firecracker_pid } | awk '{{print $5}}'"
@@ -165,7 +165,7 @@ def test_config_start_no_api_exit(uvm_plain, vm_config_file):
165
165
_configure_network_interface (test_microvm )
166
166
test_microvm .jailer .extra_args .update ({"no-api" : None })
167
167
168
- test_microvm .spawn () # Start Firecracker and MicroVM
168
+ test_microvm .spawn (serial_out_path = None ) # Start Firecracker and MicroVM
169
169
test_microvm .ssh .run ("reboot" ) # Exit
170
170
171
171
test_microvm .mark_killed () # waits for process to terminate
@@ -189,7 +189,7 @@ def test_config_bad_machine_config(uvm_plain, vm_config_file):
189
189
test_microvm = uvm_plain
190
190
_configure_vm_from_json (test_microvm , vm_config_file )
191
191
test_microvm .jailer .extra_args .update ({"no-api" : None })
192
- test_microvm .spawn ()
192
+ test_microvm .spawn (serial_out_path = None )
193
193
test_microvm .check_log_message ("Configuration for VMM from one single json failed" )
194
194
195
195
test_microvm .mark_killed ()
@@ -215,7 +215,7 @@ def test_config_machine_config_params(uvm_plain, test_config):
215
215
_configure_vm_from_json (test_microvm , vm_config_file )
216
216
test_microvm .jailer .extra_args .update ({"no-api" : None })
217
217
218
- test_microvm .spawn ()
218
+ test_microvm .spawn (serial_out_path = None )
219
219
220
220
should_fail = False
221
221
if cpu_template_used and "C3" not in SUPPORTED_CPU_TEMPLATES :
@@ -247,7 +247,7 @@ def test_config_start_with_limit(uvm_plain, vm_config_file):
247
247
248
248
_configure_vm_from_json (test_microvm , vm_config_file )
249
249
test_microvm .jailer .extra_args .update ({"http-api-max-payload-size" : "250" })
250
- test_microvm .spawn ()
250
+ test_microvm .spawn (serial_out_path = None )
251
251
252
252
assert test_microvm .state == "Running"
253
253
@@ -277,7 +277,7 @@ def test_config_with_default_limit(uvm_plain, vm_config_file):
277
277
test_microvm = uvm_plain
278
278
279
279
_configure_vm_from_json (test_microvm , vm_config_file )
280
- test_microvm .spawn ()
280
+ test_microvm .spawn (serial_out_path = None )
281
281
282
282
assert test_microvm .state == "Running"
283
283
@@ -311,7 +311,7 @@ def test_start_with_metadata(uvm_plain):
311
311
metadata_file = DIR / "metadata.json"
312
312
_add_metadata_file (test_microvm , metadata_file )
313
313
314
- test_microvm .spawn ()
314
+ test_microvm .spawn (serial_out_path = None )
315
315
316
316
test_microvm .check_log_message ("Successfully added metadata to mmds from file" )
317
317
@@ -332,7 +332,7 @@ def test_start_with_metadata_limit(uvm_plain):
332
332
metadata_file = DIR / "metadata.json"
333
333
_add_metadata_file (test_microvm , metadata_file )
334
334
335
- test_microvm .spawn ()
335
+ test_microvm .spawn (serial_out_path = None )
336
336
337
337
test_microvm .check_log_message (
338
338
"Populating MMDS from file failed: The MMDS patch request doesn't fit."
@@ -352,7 +352,7 @@ def test_start_with_metadata_default_limit(uvm_plain):
352
352
353
353
_add_metadata_file (test_microvm , metadata_file )
354
354
355
- test_microvm .spawn ()
355
+ test_microvm .spawn (serial_out_path = None )
356
356
357
357
test_microvm .check_log_message (
358
358
"Populating MMDS from file failed: The MMDS patch request doesn't fit."
@@ -372,7 +372,7 @@ def test_start_with_missing_metadata(uvm_plain):
372
372
test_microvm .metadata_file = vm_metadata_path
373
373
374
374
try :
375
- test_microvm .spawn ()
375
+ test_microvm .spawn (serial_out_path = None )
376
376
except : # pylint: disable=bare-except
377
377
pass
378
378
finally :
@@ -395,7 +395,7 @@ def test_start_with_invalid_metadata(uvm_plain):
395
395
test_microvm .metadata_file = vm_metadata_path
396
396
397
397
try :
398
- test_microvm .spawn ()
398
+ test_microvm .spawn (serial_out_path = None )
399
399
except : # pylint: disable=bare-except
400
400
pass
401
401
finally :
@@ -418,7 +418,7 @@ def test_config_start_and_mmds_with_api(uvm_plain, vm_config_file):
418
418
_configure_network_interface (test_microvm )
419
419
420
420
# Network namespace has already been created.
421
- test_microvm .spawn ()
421
+ test_microvm .spawn (serial_out_path = None )
422
422
423
423
data_store = {
424
424
"latest" : {
@@ -480,7 +480,7 @@ def test_with_config_and_metadata_no_api(uvm_plain, vm_config_file, metadata_fil
480
480
_add_metadata_file (test_microvm , metadata_file )
481
481
_configure_network_interface (test_microvm )
482
482
test_microvm .jailer .extra_args .update ({"no-api" : None })
483
- test_microvm .spawn ()
483
+ test_microvm .spawn (serial_out_path = None )
484
484
485
485
# Get MMDS version and IPv4 address configured from the file.
486
486
version , ipv4_address , imds_compat = _get_optional_fields_from_file (vm_config_file )
0 commit comments