From a4edb4020d32994af9eab82e9b3e10a50f4c5150 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 11 Oct 2025 16:25:07 +0200 Subject: [PATCH] test_driver.py: output as tests/checks/... not checks/... Something like tests/test_driver.py target/debug checks/foo.fish is invalid (needs "tests/checks/foo.fish"). Let's make failure output list the right fiel name. At least when run from the root directory. Don't change the behavior when run from "tests/"; in that case the path was already relative. --- tests/test_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_driver.py b/tests/test_driver.py index 58ca45a32..c4b2bb1b5 100755 --- a/tests/test_driver.py +++ b/tests/test_driver.py @@ -159,7 +159,7 @@ async def main(): files = [(os.path.abspath(path), path) for path in args.file] else: files = [ - (os.path.abspath(path), str(path.relative_to(script_path))) + (os.path.abspath(path), str(path.relative_to(Path.cwd()))) for path in sorted(script_path.glob("checks/*.fish")) + sorted(script_path.glob("pexpects/*.py")) ]