mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
test: Fix shellcheck error SC2164 in tests/integration/molecule.sh
for Ansible 2.17
Full error: ERROR: tests/integration/molecule.sh:54:1: SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Signed-off-by: Andy Grunwald <andygrunwald@gmail.com>
This commit is contained in:
parent
bb84746650
commit
becdab3346
1 changed files with 1 additions and 1 deletions
|
@ -51,5 +51,5 @@ unset _ANSIBLE_COVERAGE_CONFIG
|
|||
unset ANSIBLE_PYTHON_INTERPRETER
|
||||
|
||||
# Run molecule test
|
||||
cd "$role_root"
|
||||
cd "$role_root" || { echo "Fail to change directory into $role_root"; exit 1; }
|
||||
molecule -c "$collection_root/.config/molecule/config.yml" test -s "$scenario"
|
||||
|
|
Loading…
Reference in a new issue