From 081d6a3f166d013e49193838474415e0ded5ebd5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Feb 2022 18:00:23 +0530 Subject: [PATCH] Install various shells ON CI so we can test with them --- .github/workflows/ci.py | 5 +++-- kitty_tests/shell_integration.py | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index 6bd690980..87273e05b 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -35,8 +35,9 @@ def install_deps(): else: run('sudo apt-get update') run('sudo apt-get install -y libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates' - ' libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev' - ' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev librsync-dev uuid-dev') + ' libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh' + ' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev librsync-dev uuid-dev' + ' zsh bash dash fish') if is_bundle: install_bundle() else: diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index 5d5346536..f2b499a83 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -3,6 +3,8 @@ import os +import shutil +import unittest from contextlib import contextmanager from tempfile import TemporaryDirectory @@ -43,6 +45,7 @@ class ShellIntegration(BaseTest): i -= 1 yield pty + @unittest.skipUnless(shutil.which('zsh'), 'zsh not installed') def test_zsh_integration(self): ps1, rps1 = 'left>', '