mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
566 B
Bash
23 lines
566 B
Bash
2 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
source ../collection/setup.sh
|
||
|
|
||
|
set -x
|
||
|
|
||
|
options=$("${TEST_DIR}"/../ansible-test/venv-pythons.py --only-versions)
|
||
|
IFS=', ' read -r -a pythons <<< "${options}"
|
||
|
|
||
|
for python in "${pythons[@]}"; do
|
||
|
if ansible-test units --color --truncate 0 --python "${python}" --requirements "${@}" 2>&1 | tee pylint.log; then
|
||
|
echo "Test did not fail as expected."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ "${python}" = "2.7" ]; then
|
||
|
grep "^E *AssertionError$" pylint.log
|
||
|
else
|
||
|
|
||
|
grep "^E *AssertionError: assert {'yes': True} == {'no': False}$" pylint.log
|
||
|
fi
|
||
|
done
|