summaryrefslogtreecommitdiff
path: root/test/py/tests
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2016-01-21 16:05:30 -0700
committerSimon Glass <sjg@chromium.org>2016-01-28 21:01:23 -0700
commit05266103349e8409f5fbd55197c75c7bb58f575d (patch)
treeccff0aab55ceacdeca60608a735ee9f97c27d276 /test/py/tests
parentf5d196d03e5f3529be8b86d350e507390dbee22f (diff)
downloadu-boot-imx-05266103349e8409f5fbd55197c75c7bb58f575d.zip
u-boot-imx-05266103349e8409f5fbd55197c75c7bb58f575d.tar.gz
u-boot-imx-05266103349e8409f5fbd55197c75c7bb58f575d.tar.bz2
test/py: move find_ram_base() into u_boot_utils
find_ram_base() is a shared utility function, not a core part of the U-Boot console interaction. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py/tests')
-rw-r--r--test/py/tests/test_md.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/py/tests/test_md.py b/test/py/tests/test_md.py
index 94603c7..32cce4f 100644
--- a/test/py/tests/test_md.py
+++ b/test/py/tests/test_md.py
@@ -4,13 +4,14 @@
# SPDX-License-Identifier: GPL-2.0
import pytest
+import u_boot_utils
@pytest.mark.buildconfigspec('cmd_memory')
def test_md(u_boot_console):
'''Test that md reads memory as expected, and that memory can be modified
using the mw command.'''
- ram_base = u_boot_console.find_ram_base()
+ ram_base = u_boot_utils.find_ram_base(u_boot_console)
addr = '%08x' % ram_base
val = 'a5f09876'
expected_response = addr + ': ' + val
@@ -26,7 +27,7 @@ def test_md_repeat(u_boot_console):
'''Test command repeat (via executing an empty command) operates correctly
for "md"; the command must repeat and dump an incrementing address.'''
- ram_base = u_boot_console.find_ram_base()
+ ram_base = u_boot_utils.find_ram_base(u_boot_console)
addr_base = '%08x' % ram_base
words = 0x10
addr_repeat = '%08x' % (ram_base + (words * 4))