See if we can make the test more robust

This commit is contained in:
Kovid Goyal 2022-03-15 20:38:02 +05:30
parent c05c0353fd
commit c95dca4023
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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))