Skip to content

Commit

Permalink
tests: handle bash file removal on macos
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Apr 26, 2024
1 parent 97457e5 commit 80d724a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_tests/lib/helpers/http_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def upload_via_http_gate_curl(
large_object = is_object_large(filepath)
if large_object:
# pre-clean
_cmd_run("rm pipe -f")
_cmd_run("rm pipe -f || true")
files = f"file=@pipe;filename={os.path.basename(filepath)}"
cmd = f"mkfifo pipe;cat {filepath} > pipe & curl --silent --no-buffer -F '{files}' {attributes}{cookies_attr} {request}"
output = _cmd_run(cmd, LONG_TIMEOUT)
Expand Down

0 comments on commit 80d724a

Please sign in to comment.