From 32dcbbb5e1433c24ea49e786576163679b728737 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Jul 2022 15:17:12 +0530 Subject: [PATCH] ... --- kitty_tests/prewarm.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kitty_tests/prewarm.py b/kitty_tests/prewarm.py index d926e4dc2..951bac1fd 100644 --- a/kitty_tests/prewarm.py +++ b/kitty_tests/prewarm.py @@ -80,21 +80,21 @@ def wait_for_death(exit_code, timeout=5): # signal delivery tests are pretty flakey on CI so give up on them - # test SIGINT via signal to wrapper + # # test SIGINT via signal to wrapper # pty = self.create_pty( # argv=[kitty_exe(), '+runpy', src + 'socket_child_main(initial_print="child ready:")'], cols=cols, env=env, cwd=cwd) # pty.wait_till(lambda: 'child ready:' in pty.screen_contents()) - # os.killpg(os.getpgid(pty.child_pid), signal.SIGINT) - # wait_for_death(signal.SIGINT, timeout=30) + # os.kill(pty.child_pid, signal.SIGINT) # pty.wait_till(lambda: 'KeyboardInterrupt' in pty.screen_contents()) - - # test SIGINT via Ctrl-c and also test changing terminal window size + # wait_for_death(signal.SIGINT) + # + # # test SIGINT via Ctrl-c # pty = self.create_pty( # argv=[kitty_exe(), '+runpy', src + 'socket_child_main(initial_print="child ready:")'], cols=cols, env=env, cwd=cwd) # pty.wait_till(lambda: 'child ready:' in pty.screen_contents()) # pty.write_to_child('\x03', flush=True) - # wait_for_death(signal.SIGINT, timeout=30) # pty.wait_till(lambda: 'KeyboardInterrupt' in pty.screen_contents()) + # wait_for_death(signal.SIGINT) # test SIGWINCH handling pty = self.create_pty(