From 3bb869f7255b8a1ecf5eb2b532bc72d857c02b98 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Mar 2022 11:32:14 +0530 Subject: [PATCH] Also test launching of bootstrap.py --- kitty_tests/ssh.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kitty_tests/ssh.py b/kitty_tests/ssh.py index 75a0f4ec3..c7244561d 100644 --- a/kitty_tests/ssh.py +++ b/kitty_tests/ssh.py @@ -158,10 +158,12 @@ copy --exclude */w.* d1 def test_ssh_bootstrap_with_different_launchers(self): for launcher in ('sh', 'bash', 'zsh', 'fish'): - q = shutil.which(launcher) - if q: - with self.subTest(launcher=q), tempfile.TemporaryDirectory() as tdir: - self.check_bootstrap('sh', tdir, test_script='env; exit 0', SHELL_INTEGRATION_VALUE='', launcher=q) + for sh in self.all_possible_sh: + if sh == 'sh' or 'python' in sh: + q = shutil.which(launcher) + if q: + with self.subTest(sh=sh, launcher=q), tempfile.TemporaryDirectory() as tdir: + self.check_bootstrap(sh, tdir, test_script='env; exit 0', SHELL_INTEGRATION_VALUE='', launcher=q) def test_ssh_leading_data(self): script = 'echo "ld:$leading_data"; exit 0'