tests/run-tests.py: Make repl test detection more correct.
Avoid unrelated tests which happen to have "repl_" anywhere in their path to be treated as repl tests. Signed-off-by: stijn <stijn@ignitron.net>
This commit is contained in:
parent
ba4330ba10
commit
88d21f186b
|
@ -205,7 +205,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
|
||||||
|
|
||||||
# run the test, possibly with redirected input
|
# run the test, possibly with redirected input
|
||||||
try:
|
try:
|
||||||
if "repl_" in test_file:
|
if os.path.basename(test_file).startswith("repl_"):
|
||||||
# Need to use a PTY to test command line editing
|
# Need to use a PTY to test command line editing
|
||||||
try:
|
try:
|
||||||
import pty
|
import pty
|
||||||
|
|
Loading…
Reference in New Issue