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) args.prefix = os.path.abspath(args.prefix)
os.chdir(base) os.chdir(base)
if args.action == 'test': 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': if args.action == 'clean':
clean() clean()
return return

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S kitty +launch #!./kitty/launcher/kitty +launch
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import importlib import importlib