deleted file mode 100755
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# Test for U-Boot cli including command repeat
-
-BASE="$(dirname $0)"
-. $BASE/common.sh
-
-run_test() {
- ./${OUTPUT_DIR}/u-boot <<END
-setenv ctrlc_ignore y
-md 0
-
-reset
-END
-}
-check_results() {
- echo "Check results"
-
- grep -q 00000100 ${tmp} || fail "Command did not repeat"
-}
-
-echo "Test CLI repeat"
-echo
-tmp="$(tempfile)"
-build_uboot
-run_test >${tmp}
-check_results ${tmp}
-rm ${tmp}
-echo "Test passed"
@@ -10,3 +10,13 @@ def test_md(uboot_console):
uboot_console.run_command("mw " + addr + " " + val)
response = uboot_console.run_command("md " + addr + " 10")
assert(expected_response in response)
+
+@pytest.mark.buildconfigspec("cmd_memory")
+def test_md_repeat(uboot_console):
+ addr_base = "%08x" % uboot_console.config.ram_base
+ words = 0x10
+ addr_repeat = "%08x" % (uboot_console.config.ram_base + (words * 4))
+ uboot_console.run_command("md %s %x" % (addr_base, words))
+ response = uboot_console.run_command("")
+ expected_response = addr_repeat + ": "
+ assert(expected_response in response)