From 27906ea853ce7862bcb83e324ef80f6337b5d846 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 28 May 2022 08:09:30 +0530 Subject: [PATCH] Skip login shell detection when login shell is set to nologin --- kitty_tests/ssh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty_tests/ssh.py b/kitty_tests/ssh.py index 0b4add9e7..0b5c5bcc6 100644 --- a/kitty_tests/ssh.py +++ b/kitty_tests/ssh.py @@ -196,6 +196,8 @@ copy --exclude */w.* d1 self.assertTrue(methods) import pwd expected_login_shell = pwd.getpwuid(os.geteuid()).pw_shell + if os.path.basename(expected_login_shell) == 'nologin': + self.skipTest('Skipping login shell detection as login shell is set to nologin') for m in methods: for sh in self.all_possible_sh: if 'python' in sh: