From 16da031f68a72d9bf2b786d6183378cc6194ffa6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Aug 2022 21:49:06 +0530 Subject: [PATCH] Wait till prompt appears before issuing clear --- kitty_tests/shell_integration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index 3ef2bdfc4..7cc3ca507 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -188,6 +188,7 @@ function _set_status_prompt; function fish_prompt; echo -n "$pipestatus $status pty.wait_till(lambda: pty.screen.last_reported_cwd.endswith(self.home_dir)) # completion and prompt marking + pty.wait_till(lambda: 'cd -' not in pty.screen_contents().splitlines()[-1]) pty.send_cmd_to_child('clear') pty.wait_till(lambda: pty.screen_contents().count(right_prompt) == 1) pty.send_cmd_to_child('_test_comp_path')