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>
pull/12296/head
stijn 2023-08-24 13:15:23 +02:00
rodzic ba4330ba10
commit 88d21f186b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -205,7 +205,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
# run the test, possibly with redirected input
try:
if "repl_" in test_file:
if os.path.basename(test_file).startswith("repl_"):
# Need to use a PTY to test command line editing
try:
import pty