Skip to content

Commit

Permalink
FIXUP: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jun 30, 2024
1 parent 9c9a63c commit 10e28f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
SCRIPTDIR="$(readlink -f "$(dirname "$0")")"
TOPDIR="$(readlink -f "${SCRIPTDIR}/..")"

test_env="/tmp/ansible-freeipa-tests"
# test_env="/tmp/ansible-freeipa-tests"

# shellcheck source=utils/shfun
. "${SCRIPTDIR}/shfun"
Expand Down Expand Up @@ -138,7 +138,7 @@ log info "Installing dependencies from 'requirements-tests.txt'"
pip install --upgrade -r "${TOPDIR}/requirements-tests.txt"

# shellcheck disable=SC2119
[ -z "SKIP_ANSIBLE" ] && install_ansible
[ -z "${SKIP_ANSIBLE}" ] && install_ansible

# Ansible configuration
export ANSIBLE_ROLES_PATH="${TOPDIR}/roles"
Expand Down
2 changes: 2 additions & 0 deletions utils/setup_test_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ scenario="${1}"
shift

make_inventory "${scenario}" "${engine:-podman}" "${ansible_interpreter:-"/usr/bin/python3"}"
# shellcheck disable=SC2154
log info "Inventory path: [${inventory}]"
# shellcheck disable=SC2154
log debug "$(cat "${inventory}")"
prepare_container "${scenario}" "${IMAGE_TAG}"
start_container "${scenario}"
Expand Down
2 changes: 1 addition & 1 deletion utils/shfun
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -eu
# This file is meant to be source'd by bash scripts

# shellcheck disable=SC2034
Expand Down

0 comments on commit 10e28f3

Please sign in to comment.