summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@midokura.com>2024-02-15 12:15:02 +0900
committerDamien George <damien@micropython.org>2024-02-15 16:36:22 +1100
commit06cb6b1e9fe8e4f965f14843be5a4ffe676c7f90 (patch)
tree9fb745293ac6b673c753b70f33aeed4a8c6d47c0
parente3be70b5e8a4b6f80426f967c467f9f765f92c26 (diff)
minimal: Use printf instead of echo -e.
macOS's echo doesn't have -e option. printf is in POSIX and more widely available these days. Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
-rw-r--r--ports/minimal/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/minimal/Makefile b/ports/minimal/Makefile
index 824e54205..9bdc06fc9 100644
--- a/ports/minimal/Makefile
+++ b/ports/minimal/Makefile
@@ -106,6 +106,6 @@ run:
stty $$saved_
test: $(BUILD)/firmware.elf
- $(Q)/bin/echo -e "print('hello world!', list(x+1 for x in range(10)), end='eol\\\\n')\\r\\n\\x04" | $(BUILD)/firmware.elf | tail -n2 | grep "^hello world! \\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\\]eol"
+ $(Q)/usr/bin/printf "print('hello world!', list(x+1 for x in range(10)), end='eol\\\\n')\\r\\n\\004" | $(BUILD)/firmware.elf | tail -n2 | grep "^hello world! \\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\\]eol"
include $(TOP)/py/mkrules.mk