mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
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:
@@ -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"))
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user