1999110bbc
* Install galaxy roles before running ansible tests * Use package module in kolla-ceph to support Debian-based systems This is required for running tests in TravisCI. * Fix kolla-ceph unit test * Add more tests for kolla-ceph Journal tests are currently failing on my laptop due to partition labels being truncated. * Add .gitignore for stackhpc.parted-1-1 galaxy role * Run all test cases Run all test cases, collecting failures, then report at the end.
18 lines
366 B
Bash
Executable File
18 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run ansible tests. Any arguments passed to this script will be passed onto
|
|
# ansible-playbook.
|
|
|
|
set -e
|
|
|
|
failed=0
|
|
for playbook in ansible/roles/*/tests/main.yml; do
|
|
if ! ansible-playbook --connection=local $playbook $*; then
|
|
failed=$((failed + 1))
|
|
fi
|
|
done
|
|
if [[ $failed -ne 0 ]]; then
|
|
echo "Failed $failed test cases"
|
|
exit 1
|
|
fi
|