if "No MMC device available" in output:
pytest.skip('No SD/MMC/eMMC controller available')
+ if "Card did not respond to voltage select" in output:
+ pytest.skip('No SD/MMC card present')
+
array = output.split( )
global devices
fail = 0
for x in range(0, controllers):
+ devices[x]["detected"] = "yes"
output = u_boot_console.run_command('mmc dev %d' % x)
# Some sort of switch here
if "Card did not respond to voltage select" in output:
fail = 1
devices[x]["detected"] = "no"
- else:
- devices[x]["detected"] = "yes"
+
+ if "no mmc device at slot" in output:
+ devices[x]["detected"] = "no"
if fail:
pytest.fail("Card not present")