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:
stijn 2023-08-24 13:15:23 +02:00
parent ba4330ba10
commit 88d21f186b
1 changed files with 1 additions and 1 deletions

View File

@ -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