]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: py: Detect case when card is not present in the slot
authorMichal Simek <michal.simek@xilinx.com>
Wed, 6 May 2020 07:28:41 +0000 (09:28 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 2 Feb 2021 12:49:32 +0000 (13:49 +0100)
This is cover cases where the same tests run on qemu and card is not wired.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
State: pending

test/py/tests/test_mmc.py

index 3ebb86f54886ff65a3b02d86e744d79cbea2b048..fcce697c958a119f62940609a6a5b62d03b4fe8e 100644 (file)
@@ -54,6 +54,9 @@ def test_mmc_dev(u_boot_console):
         if "no mmc device at slot" in output:
             devices[x]["detected"] = "no"
 
+        if "MMC: no card present" in output:
+            devices[x]["detected"] = "no"
+
     if fail:
         pytest.fail("Card not present")