mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #7807/ee8b1570 backport][stable-7] Fix failing sanity and integration tests (#7808)
Fix failing sanity and integration tests (#7807)
* Remove some Shippable specific code that trips latest shellcheck.
* Rename templated shell script to .sh.j2 to avoid shellcheck disliking the templating.
* Copy on the remote, not from controller to remote.
(cherry picked from commit ee8b15708f
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
9f0af5380c
commit
c88610305b
4 changed files with 4 additions and 12 deletions
|
@ -7,7 +7,8 @@
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: /bin/echo
|
src: /bin/echo
|
||||||
dest: "{{ item.copy_to }}/echo"
|
dest: "{{ item.copy_to }}/echo"
|
||||||
mode: "755"
|
mode: "0755"
|
||||||
|
remote_src: true
|
||||||
when: item.copy_to is defined
|
when: item.copy_to is defined
|
||||||
|
|
||||||
- name: test cmd_echo module ({{ item.name }})
|
- name: test cmd_echo module ({{ item.name }})
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
- name: Copy templated helper script
|
- name: Copy templated helper script
|
||||||
template:
|
template:
|
||||||
src: obtainpid.sh
|
src: obtainpid.sh.j2
|
||||||
dest: "{{ remote_tmp_dir }}/obtainpid.sh"
|
dest: "{{ remote_tmp_dir }}/obtainpid.sh"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
|
|
@ -65,16 +65,7 @@ else
|
||||||
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
|
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${SHIPPABLE_BUILD_ID:-}" ]; then
|
export ANSIBLE_COLLECTIONS_PATHS="${PWD}/../../../"
|
||||||
export ANSIBLE_COLLECTIONS_PATHS="${HOME}/.ansible"
|
|
||||||
SHIPPABLE_RESULT_DIR="$(pwd)/shippable"
|
|
||||||
TEST_DIR="${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/general"
|
|
||||||
mkdir -p "${TEST_DIR}"
|
|
||||||
cp -aT "${SHIPPABLE_BUILD_DIR}" "${TEST_DIR}"
|
|
||||||
cd "${TEST_DIR}"
|
|
||||||
else
|
|
||||||
export ANSIBLE_COLLECTIONS_PATHS="${PWD}/../../../"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${test}" == "sanity/extra" ]; then
|
if [ "${test}" == "sanity/extra" ]; then
|
||||||
retry pip install junit-xml --disable-pip-version-check
|
retry pip install junit-xml --disable-pip-version-check
|
||||||
|
|
Loading…
Reference in a new issue