Skip to content

Commit

Permalink
CI: workaround hardcoded bash shell in alpine
Browse files Browse the repository at this point in the history
pytest-mh has a hardcoded dependency towards bash shell and the easiest
way to avoid is to install bash and set it as the default shell in
alpine.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
  • Loading branch information
ikerexxe committed Nov 25, 2024
1 parent ec70c7e commit 9bdea5e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions share/ansible/roles/ci_run/tasks/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,22 @@
src: /usr/local/src/shadow/etc/login.defs
dest: /etc/login.defs
remote_src: yes

#The following is a workaround
- name: Ensure test dependencies are installed
community.general.apk:
name:
- bash
state: present

#The following is a workaround
- name: Change shell for tests
ansible.builtin.command:
chsh -s /bin/bash

#The following is a workaround
- name: Create a symbolic link
ansible.builtin.file:
src: /bin/bash
dest: /usr/bin/bash
state: link

0 comments on commit 9bdea5e

Please sign in to comment.