From 88d21f186bc8ca9ef9728a36f5ca27731f2d86bc Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 24 Aug 2023 13:15:23 +0200 Subject: [PATCH] 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 --- tests/run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-tests.py b/tests/run-tests.py index cae5708087..8fe97be6cc 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -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