This commit is contained in:
pagedown 2022-02-23 20:49:32 +08:00
parent 03f9f29ce4
commit c18ebef702
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -151,8 +151,6 @@ function _ksi_test_comp; contains "{completions_dir}" $fish_complete_path; and e
pty.send_cmd_to_child('clear') pty.send_cmd_to_child('clear')
pty.send_cmd_to_child('_ksi_test_comp') pty.send_cmd_to_child('_ksi_test_comp')
pty.wait_till(lambda: pty.screen_contents().count(right_prompt) == 2) pty.wait_till(lambda: pty.screen_contents().count(right_prompt) == 2)
# with open('/tmp/1.log', 'a') as logf:
# print(str(pty.screen_contents()), file=logf)
q = '\n'.join(str(pty.screen.line(i)) for i in range(1, pty.screen.cursor.y)) q = '\n'.join(str(pty.screen.line(i)) for i in range(1, pty.screen.cursor.y))
self.ae(q, 'ok') self.ae(q, 'ok')
self.ae(pty.last_cmd_output(), q) self.ae(pty.last_cmd_output(), q)