From e6ffa441b2d75a24f6a11c6f86cb1505f24f6b81 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 6 May 2020 09:28:41 +0200 Subject: [PATCH] test: py: Detect case when card is not present in the slot This is cover cases where the same tests run on qemu and card is not wired. Signed-off-by: Michal Simek State: pending --- test/py/tests/test_mmc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/py/tests/test_mmc.py b/test/py/tests/test_mmc.py index 3ebb86f5488..fcce697c958 100644 --- a/test/py/tests/test_mmc.py +++ b/test/py/tests/test_mmc.py @@ -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") -- 2.47.3