File tree Expand file tree Collapse file tree 5 files changed +12
-1
lines changed
tests/integration/targets
cics_cmci_missing_requests_library
cics_cmci_missing_xmltodict_library Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
# (c) Copyright IBM Corp. 2021
3
3
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
4
4
set -eux # This is important to ensure that return codes from failing tests are propagated
5
+ if pip show requests 2>&1 | grep -q ' Package(s) not found' ; then
5
6
ansible-playbook playbooks/cmci_missing_requests.yml
7
+ fi
Original file line number Diff line number Diff line change 2
2
# (c) Copyright IBM Corp. 2021
3
3
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
4
4
set -eux # This is important to ensure that return codes from failing tests are propagated
5
+ if pip show xmltodict 2>&1 | grep -q ' Package(s) not found' ; then
5
6
ansible-playbook playbooks/cmci_missing_xmltodict.yml
7
+ fi
File renamed without changes.
Original file line number Diff line number Diff line change @@ -8,4 +8,7 @@ VAR_PATH="$ANSIBLE_COLLECTIONS_PATH/ansible_collections/ibm/ibm_zos_cics/tests/i
8
8
INV_PATH=" $ANSIBLE_COLLECTIONS_PATH /ansible_collections/ibm/ibm_zos_cics/tests/integration/inventory_zos.yml"
9
9
ZOS_ENV=" $ANSIBLE_COLLECTIONS_PATH /ansible_collections/ibm/ibm_zos_cics/tests/integration/variables/zos.yml"
10
10
11
- ansible-playbook -i " $INV_PATH " -e " @$VAR_PATH " -e " @$ZOS_ENV " playbooks/missing_core.yml
11
+
12
+ if [ -z " $( ansible-galaxy collection list ibm.ibm_zos_core) " ]; then
13
+ ansible-playbook -i " $INV_PATH " -e " @$VAR_PATH " -e " @$ZOS_ENV " playbooks/missing_core.yml
14
+ fi
Original file line number Diff line number Diff line change @@ -8,4 +8,8 @@ VAR_PATH="$ANSIBLE_COLLECTIONS_PATH/ansible_collections/ibm/ibm_zos_cics/tests/i
8
8
INV_PATH=" $ANSIBLE_COLLECTIONS_PATH /ansible_collections/ibm/ibm_zos_cics/tests/integration/inventory_zos.yml"
9
9
ZOS_ENV=" $ANSIBLE_COLLECTIONS_PATH /ansible_collections/ibm/ibm_zos_cics/tests/integration/variables/zos.yml"
10
10
11
+ python_ver=$( python -V 2>&1 | grep -Po ' (?<=Python )(.+)' )
12
+
13
+ if [[ " ${python_ver: 0: 3} " != " 2.7" ]]; then
11
14
ansible-playbook -i " $INV_PATH " -e " @$VAR_PATH " -e " @$ZOS_ENV " playbooks/aux_trace_warm_state.yml
15
+ fi
You can’t perform that action at this time.
0 commit comments