mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Check that non-ascii paths work in cwd reporting
This commit is contained in:
parent
8c6e7ce61a
commit
190666dc8a
1 changed files with 2 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ RPS1="{rps1}"
|
|||
pty.wait_till(lambda: 'ab' in pty.screen_contents())
|
||||
self.assertTrue(pty.screen.last_reported_cwd.endswith(self.home_dir))
|
||||
self.assertIn('%s^G%s', pty.screen_contents())
|
||||
q = os.path.join(self.home_dir, 'testing-cwd-notification')
|
||||
q = os.path.join(self.home_dir, 'testing-cwd-notification-🐱')
|
||||
os.mkdir(q)
|
||||
pty.send_cmd_to_child(f'cd {q}')
|
||||
pty.wait_till(lambda: pty.screen.last_reported_cwd.endswith(q))
|
||||
|
|
@ -277,7 +277,7 @@ PS1="{ps1}"
|
|||
self.assertTrue(pty.screen.last_reported_cwd.endswith(self.home_dir))
|
||||
pty.send_cmd_to_child('echo $HISTFILE')
|
||||
pty.wait_till(lambda: '.bash_history' in pty.screen_contents())
|
||||
q = os.path.join(self.home_dir, 'testing-cwd-notification')
|
||||
q = os.path.join(self.home_dir, 'testing-cwd-notification-🐱')
|
||||
os.mkdir(q)
|
||||
pty.send_cmd_to_child(f'cd {q}')
|
||||
pty.wait_till(lambda: pty.screen.last_reported_cwd.endswith(q))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue