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.
This commit is contained in:
Johannes Altmanninger
2025-10-11 16:25:07 +02:00
parent e1e5dfdd62
commit a4edb4020d

View File

@@ -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"))
]