mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Run all tests on the full frozen build using the frozen launcher
Much more comprehensive test coverage at the cost of slightly increasing the frozen build size.
This commit is contained in:
@@ -18,8 +18,14 @@ orig_executable = spawn.get_executable()
|
||||
|
||||
|
||||
def spawnv_passfds(path: str, args: List[str], passfds: List[int]) -> Any:
|
||||
idx = args.index('-c')
|
||||
patched_args = [spawn.get_executable(), '+runpy'] + args[idx + 1:]
|
||||
if '-c' in args:
|
||||
idx = args.index('-c')
|
||||
patched_args = [spawn.get_executable(), '+runpy'] + args[idx + 1:]
|
||||
else:
|
||||
idx = args.index('--multiprocessing-fork')
|
||||
prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'
|
||||
prog %= ', '.join(item for item in args[idx+1:])
|
||||
patched_args = [spawn.get_executable(), '+runpy', prog]
|
||||
return orig_spawn_passfds(kitty_exe(), patched_args, passfds)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user