From c95dca40232c337d7611404d21fb19c374ad0d12 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Mar 2022 20:38:02 +0530 Subject: [PATCH] See if we can make the test more robust --- 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 cd4e46e9e..f24020c7d 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -181,6 +181,7 @@ function _set_status_prompt; function fish_prompt; echo -n "$pipestatus $status # completion and prompt marking 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') pty.wait_till(lambda: pty.screen_contents().count(right_prompt) == 2) q = '\n'.join(str(pty.screen.line(i)) for i in range(1, pty.screen.cursor.y))