From 89852d38ef097892e1d4624c4ec4389275603872 Mon Sep 17 00:00:00 2001 From: Tom Soulanille Date: Wed, 29 Jul 2015 23:16:51 -0700 Subject: run-tests: Test REPL emacs keys, but only if present. Uses cmdline/repl_emacs_check.py to check for presence of emacs keys in repl before doing full feature test. --- tests/run-tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/run-tests') diff --git a/tests/run-tests b/tests/run-tests index e65c1d261..937976681 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -163,6 +163,12 @@ def run_tests(pyb, tests, args): if native == b'CRASH': skip_native = True + # Check if emacs repl is supported, and skip such tests if it's not + t = run_micropython(pyb, args, 'cmdline/repl_emacs_check.py') + if not 'True' in str(t, 'ascii'): + skip_tests.add('cmdline/repl_emacs_check.py') + skip_tests.add('cmdline/repl_emacs_keys.py') + # Some tests shouldn't be run under Travis CI if os.getenv('TRAVIS') == 'true': skip_tests.add('basics/memoryerror.py') -- cgit v1.2.3