mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-10 05:45:35 +00:00
Port bootstrap script length limit
This commit is contained in:
parent
9870c94007
commit
e02ba7f389
3 changed files with 24 additions and 8 deletions
|
|
@ -56,12 +56,6 @@ print(' '.join(map(str, buf)))'''), lines=13, cols=77)
|
|||
t('ssh --kitten=one -p 12 --kitten two -ix main', identity_file='x', port=12, extra_args=(('--kitten', 'one'), ('--kitten', 'two')))
|
||||
self.assertTrue(runtime_dir())
|
||||
|
||||
def test_ssh_bootstrap_sh_cmd_limit(self):
|
||||
# dropbear has a 9000 bytes maximum command length limit
|
||||
sh_script, _, _ = bootstrap_script(SSHOptions({'interpreter': 'sh'}), script_type='sh', remote_args=[], request_id='123-123')
|
||||
rcmd = wrap_bootstrap_script(sh_script, 'sh')
|
||||
self.assertLessEqual(sum(len(x) for x in rcmd), 9000)
|
||||
|
||||
@property
|
||||
@lru_cache()
|
||||
def all_possible_sh(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue