Commit 48f32ce8 authored by Guido Gunther's avatar Guido Gunther Committed by Martin Kepplinger

pytests: Check for SCSI disk

Even when ther's no media we can check that the kernel
detected the card controller.
parent b4b9c3d7
Pipeline #62335 passed with stages
in 7 minutes
from . import boardtype
from . import sysfs
import subprocess
import pytest
......@@ -20,3 +21,8 @@ def test_phone_usb_hub():
def test_usb_media_card():
out = subprocess.check_output(["lsusb", "-d", "0424:4041"])
assert(b"media card controller" in out)
@pytest.mark.skipif(not boardtype.is_librem5(), reason="Not a phone")
def test_usb_scsi():
sysfs.check_content_in_glob("Ultra HS-SD/MMC \n", "/sys/bus/scsi/devices/*/model")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment