From: Michal Simek Date: Thu, 21 Dec 2017 12:44:04 +0000 (+0100) Subject: py: test: Fix number of controller calculation X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d755bd0048d4c3c0bd259587f8c14fb132a23089;p=thirdparty%2Fu-boot.git py: test: Fix number of controller calculation Array looks like this. ['sdhci@ff160000:', '0', '(SD)', 'sdhci@ff170000:', '1', '(SD)'] It means it is necessary to divide by 3 to get number of controllers. Signed-off-by: Michal Simek --- diff --git a/test/py/tests/test_mmc.py b/test/py/tests/test_mmc.py index 4316971c5bc..b050577f3ef 100644 --- a/test/py/tests/test_mmc.py +++ b/test/py/tests/test_mmc.py @@ -22,7 +22,7 @@ def test_mmc_list(u_boot_console): global devices global controllers - controllers = len(array) / 2 + controllers = len(array) / 3 for x in range(0, controllers): y = x * 2 devices[x] = {}