Update test for new exe search

This commit is contained in:
Kovid Goyal 2022-09-19 20:03:29 +05:30
parent 4cbd2a0ee0
commit e3b8de1ac0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -111,7 +111,7 @@ def completion(self: TestCompletion, tdir: str):
make_file('sub/exe-not3.png') make_file('sub/exe-not3.png')
add('kitty x', all_words()) add('kitty x', all_words())
add('kitty e', all_words('exe1')) add('kitty e', all_words('exe1', 'exe2'))
add('kitty ./', all_words('./bin/', './sub/', './exe2')) add('kitty ./', all_words('./bin/', './sub/', './exe2'))
add('kitty ./e', all_words('./exe2')) add('kitty ./e', all_words('./exe2'))
add('kitty ./s', all_words('./sub/')) add('kitty ./s', all_words('./sub/'))
@ -166,7 +166,7 @@ def completion(self: TestCompletion, tdir: str):
add('kitty -1 bash ', is_delegate(2, 'bash')) add('kitty -1 bash ', is_delegate(2, 'bash'))
add('kitty -1 bash --n', is_delegate(2, 'bash')) add('kitty -1 bash --n', is_delegate(2, 'bash'))
add('kitty @launch --type tab bash --n', is_delegate(4, 'bash')) add('kitty @launch --type tab bash --n', is_delegate(4, 'bash'))
add('kitty @launch e', all_words('exe1')) add('kitty @launch e', all_words('exe1', 'exe2'))
for cmd, tests, result in zip(all_cmds, all_tests, run_tool()): for cmd, tests, result in zip(all_cmds, all_tests, run_tool()):
self.current_cmd = cmd self.current_cmd = cmd