From 7281b9dbb13595e89bd5f5b906b3e37e59de8b82 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Jul 2022 21:09:09 +0530 Subject: [PATCH] Ensure local kitty is used when running the tests --- setup.py | 3 ++- test.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 23870ed0a..2239670cd 100755 --- a/setup.py +++ b/setup.py @@ -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 diff --git a/test.py b/test.py index 807da57ce..cc78dec2f 100755 --- a/test.py +++ b/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env -S kitty +launch +#!./kitty/launcher/kitty +launch # License: GPL v3 Copyright: 2016, Kovid Goyal import importlib