Also output screen contents when test fails

This commit is contained in:
Kovid Goyal 2022-09-05 07:52:36 +05:30
parent 5bf5454dbe
commit c455fea729
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -368,4 +368,4 @@ PS1="{ps1}"
pty.send_cmd_to_child('clone-in-kitty')
pty.wait_till(lambda: len(pty.callbacks.clone_cmds) == 1)
env = pty.callbacks.clone_cmds[0].env
self.ae(env.get('ES'), 'a\n `b` c\n$d')
self.ae(env.get('ES'), 'a\n `b` c\n$d', f'Screen contents: {pty.screen_contents()!r}')