From ded2d0b90e5fc8a379991ec7d3bc4b1d31f3faa2 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 7 Jan 2021 10:39:50 -0800 Subject: [PATCH] Use `sh` for ansible-test raw remote shell. --- changelogs/fragments/ansible-test-remote-shell-raw.yml | 2 ++ test/lib/ansible_test/_internal/delegation.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/ansible-test-remote-shell-raw.yml diff --git a/changelogs/fragments/ansible-test-remote-shell-raw.yml b/changelogs/fragments/ansible-test-remote-shell-raw.yml new file mode 100644 index 00000000000..c846710b532 --- /dev/null +++ b/changelogs/fragments/ansible-test-remote-shell-raw.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test - The ``--raw`` option for ``ansible-test shell --remote`` now uses ``sh`` for the shell instead of ``bash``, which may not be present. diff --git a/test/lib/ansible_test/_internal/delegation.py b/test/lib/ansible_test/_internal/delegation.py index bf46765b02c..5cda9a1cd92 100644 --- a/test/lib/ansible_test/_internal/delegation.py +++ b/test/lib/ansible_test/_internal/delegation.py @@ -448,7 +448,7 @@ def delegate_remote(args, exclude, require, integration_targets): manage = ManagePosixCI(core_ci) manage.setup(python_version) - cmd = create_shell_command(['bash']) + cmd = create_shell_command(['sh']) else: manage = ManagePosixCI(core_ci) pwd = manage.setup(python_version)