Ensure local kitty is used when running the tests

This commit is contained in:
Kovid Goyal
2022-07-05 21:09:09 +05:30
parent 4b63ee036e
commit 7281b9dbb1
2 changed files with 3 additions and 2 deletions

View File

@@ -1538,7 +1538,8 @@ def main() -> None:
args.prefix = os.path.abspath(args.prefix)
os.chdir(base)
if args.action == 'test':
os.execlp('kitty', 'kitty', '+launch', 'test.py')
texe = os.path.abspath('kitty/launcher/kitty')
os.execl(texe, texe, '+launch', 'test.py')
if args.action == 'clean':
clean()
return