File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 11namespace : opentelekomcloud
22name : cloud
3- version : 0.14.2
3+ version : 0.14.3
44readme : README.md
55authors :
66 -
Artem Goncharov <[email protected] >
Original file line number Diff line number Diff line change @@ -27,4 +27,19 @@ if [ -f "requirements.txt" ]; then
2727fi
2828
2929cd " $TEST_DIR "
30- ansible-test sanity --skip-test metaclass-boilerplate --skip-test future-import-boilerplate
30+ SKIP_TESTS=" "
31+ # Ansible-core 2.17 dropped support for the metaclass-boilerplate and future-import-boilerplate tests.
32+ ANSIBLE_VER=$( python3 -m pip show ansible-core | awk ' $1 == "Version:" { print $2 }' )
33+ ANSIBLE_MAJOR_VER=$( echo " $ANSIBLE_VER " | sed ' s/^\([0-9]\)\..*/\1/g' )
34+ if [[ $ANSIBLE_MAJOR_VER -eq 2 ]]; then
35+ ANSIBLE_MINOR_VER=$( echo " $ANSIBLE_VER " | sed ' s/^2\.\([^\.]*\)\..*/\1/g' )
36+ if [[ $ANSIBLE_MINOR_VER -le 16 ]]; then
37+ SKIP_TESTS=" --skip-test metaclass-boilerplate --skip-test future-import-boilerplate"
38+ fi
39+ fi
40+
41+ echo " Ansible version: $ANSIBLE_VER "
42+ echo " Tests to skip: $SKIP_TESTS "
43+
44+ ansible-test sanity -v \
45+ $SKIP_TESTS
You can’t perform that action at this time.
0 commit comments