File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
tests/integration_tests/functional Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import os
6
6
import platform
7
- from subprocess import run , PIPE
7
+ from subprocess import run
8
8
9
9
import pytest
10
10
@@ -92,9 +92,11 @@ def test_rescan_dev(test_microvm_with_ssh, network_config):
92
92
size = 512
93
93
)
94
94
95
- losetup = ['losetup' , '--find' , '--show' , fs2 .path ]
96
- losetup_result = run (losetup , stdout = PIPE , check = True )
97
- loopback_device = losetup_result .stdout .decode ('utf-8' ).rstrip ()
95
+ # "losetup --find" may slow down tests due to
96
+ # https://github.com/firecracker-microvm/firecracker-containerd/issues/141
97
+ loopback_device = f'/dev/loop{ os .getpid ()} '
98
+ losetup = ['losetup' , loopback_device , fs2 .path ]
99
+ run (losetup , check = True )
98
100
99
101
try :
100
102
response = test_microvm .drive .patch (
You can’t perform that action at this time.
0 commit comments