Skip to content

Commit 2a7679b

Browse files
committed
Skip the test if the kernel doesn't support loopback devices
The x86_64 CI host doesn't support loopback devices so far. Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 2d8dd18 commit 2a7679b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration_tests/functional/test_drives.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def test_rescan_file(test_microvm_with_ssh, network_config):
5858
)
5959

6060

61+
@pytest.mark.skipif(
62+
not os.path.exists('/dev/loop-control'),
63+
reason="the kernel doesn't support loopback devices"
64+
)
6165
def test_rescan_dev(test_microvm_with_ssh, network_config):
6266
"""Verify that rescan works with a device-backed virtio device."""
6367
test_microvm = test_microvm_with_ssh

0 commit comments

Comments
 (0)