From e103b280fdcbcf19ae15a72fb3030e03b89f141d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Feb 2022 20:09:54 +0530 Subject: [PATCH] Add test for HISTFILE --- kitty_tests/shell_integration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index 09169a09d..b7777d779 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -278,6 +278,8 @@ PS1="{ps1}" pty.send_cmd_to_child('printf "%s\x16\a%s" "a" "b"') pty.wait_till(lambda: pty.screen_contents().count(ps1) == 2) self.ae(pty.screen_contents(), f'{ps1}printf "%s^G%s" "a" "b"\nab{ps1}') + pty.send_cmd_to_child('echo $HISTFILE') + pty.wait_till(lambda: '.bash_history' in pty.screen_contents()) for ps1 in ('line1\\nline\\2\\prompt> ', 'line1\nprompt> ', 'line1\\nprompt> ',): with self.subTest(ps1=ps1), self.run_shell(