Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/harbor_hypeman/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ async def exec(
result = await exec_async(
self._client,
self._require_instance(),
["/bin/sh", "-lc", command],
["/bin/bash", "-lc", command],
cwd=effective_exec_cwd(
cwd,
self.task_env_config.workdir,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def test_start_creates_configured_workdir(
assert args.args[:3] == (
client,
"instance-1",
["/bin/sh", "-lc", "mkdir -p '/workspace with spaces'"],
["/bin/bash", "-lc", "mkdir -p '/workspace with spaces'"],
)
assert args.kwargs["cwd"] == "/"

Expand Down Expand Up @@ -325,7 +325,7 @@ async def test_exec_uses_shell_workdir_environment_and_user(
assert args.args[:3] == (
client,
"instance-1",
["/bin/sh", "-lc", "su agent -s /bin/sh -c 'printf test'"],
["/bin/bash", "-lc", "su agent -s /bin/sh -c 'printf test'"],
)
assert args.kwargs == {
"cwd": "/workspace",
Expand Down