mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 02:11:48 +00:00
test(ssh): update tar pipe assertion for --no-overwrite-dir
Existing test_tar_pipe_commands asserted the literal substring 'tar xf - -C /' in ssh_str, which is no longer present after the #17767 fix adds --no-overwrite-dir between 'tar xf -' and '-C /'. Split the one substring check into three independent assertions for the tar stdin mode, the new --no-overwrite-dir flag (regression guard for #17767), and the extract target.
This commit is contained in:
parent
b50bc13ef9
commit
87f5e1a25a
1 changed files with 4 additions and 2 deletions
|
|
@ -166,10 +166,12 @@ class TestSSHBulkUpload:
|
|||
assert "-" in tar_cmd # stdout
|
||||
assert "-C" in tar_cmd
|
||||
|
||||
# ssh: extract from stdin at /
|
||||
# ssh: extract from stdin at /, preserving existing dir modes (#17767)
|
||||
ssh_str = " ".join(ssh_cmd)
|
||||
assert "ssh" in ssh_str
|
||||
assert "tar xf - -C /" in ssh_str
|
||||
assert "tar xf -" in ssh_str
|
||||
assert "--no-overwrite-dir" in ssh_str
|
||||
assert "-C /" in ssh_str
|
||||
assert "testuser@example.com" in ssh_str
|
||||
|
||||
def test_mkdir_failure_raises(self, mock_env, tmp_path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue