Make test robust against wezterm's system wide shell integration

Not only is it system wide but it runs by default, even outside wezterm,
sigh.
This commit is contained in:
Kovid Goyal 2024-01-18 12:52:14 +05:30
parent 43df7be977
commit 715548b144
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -41,6 +41,7 @@ def basic_shell_env(home_dir):
'KITTY_INSTALLATION_DIR': kitty_base_dir,
'BASH_SILENCE_DEPRECATION_WARNING': '1',
'PYTHONDONTWRITEBYTECODE': '1',
'WEZTERM_SHELL_SKIP_ALL': '1', # dont fail if WezTerm's system wide, default on (why?) shell integration is installed
}
for x in ('USER', 'LANG'):
if os.environ.get(x):