Skip to content

Commit 0a796ac

Browse files
committed
Fix some typos and add some debugging
1 parent 000ec9a commit 0a796ac

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

container-images/tcib/base/ansible-tests/run_ansible.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
ANSIBLE_DIR="/var/lib/ansible/ansible"
5+
ANSIBLE_DIR="/var/lib/ansible/ansible/"
66
ANSIBLE_FILE_EXTRA_VARS_PARAM="${ANSIBLE_FILE_EXTRA_VARS_PARAM:-}"
77
POD_ANSIBLE_PLAYBOOK="${POD_ANSIBLE_PLAYBOOK:-}"
88
POD_ANSIBLE_EXTRA_VARS="${POD_ANSIBLE_EXTRA_VARS:-}"
@@ -17,7 +17,8 @@ fi
1717
# Clone the Ansible repository
1818
#git clone "$POD_ANSIBLE_GIT_REPO" "$ANSIBLE_DIR"
1919
# This should be passed in via the appropriate vars
20-
git clone "http://github.com/infrawatch/feature-verificaton-tests" "$ANSIBLE_DIR"
20+
git clone "http://github.com/infrawatch/feature-verification-tests" "$ANSIBLE_DIR"/feature-verification-tests
21+
ls "$ANSIBLE_DIR"
2122

2223
# Handle extra vars file if provided
2324
if [[ -n "${POD_ANSIBLE_FILE_EXTRA_VARS:-}" ]]; then
@@ -51,10 +52,10 @@ fi
5152
# The ansible.config would just need to change the classname.
5253
# OR we might need to look into passing a config file content into the runner.
5354
cd "$ANSIBLE_DIR"
54-
export $ANSIBLE_CONFIG="$ANSIBLE_DIR/feature-verification-tests/ci/ansible.cfg"
55+
export ANSIBLE_CONFIG="$ANSIBLE_DIR/feature-verification-tests/ci/ansible.cfg"
5556
# this should be passed in with the appropriate vars.
57+
ls $ANSIBLE_DIR
5658
export POD_ANSIBLE_PLAYBOOK=$ANSIBLE_DIR/feature-verification-tests/ci/run_verify_metrics_osp18.yml
57-
5859
ansible-playbook "$POD_ANSIBLE_PLAYBOOK" $ANSIBLE_DEBUG -i $ANSIBLE_DIR/inventory $POD_ANSIBLE_EXTRA_VARS $ANSIBLE_FILE_EXTRA_VARS_PARAM
5960
# anything that is run by FVT is always going to pass, since it relies on report_results to run afterwards, so I will need to add a new playbook to do the tests and the reporting.
6061
# Currently, the report-results has to be separate since the custom junit plugin will only create the XML files once the playbook is completed.

0 commit comments

Comments
 (0)