Federico Ressi a83149e39e Run test cases at the end of provisioning
Change-Id: I63f2d5041b391ff052f8846a8793f51fb00fb6df
2020-09-30 13:49:03 +02:00

19 lines
388 B
YAML

---
- name: 'Run test cases: {{ tox_command_line }}'
become: true
become_user: stack
shell:
cmd: |
sudo su -l stack -c "cd '{{ test_dir }}' && {{ tox_command_line }}" 2>&1
rc=$?
echo "*** FINISHED ***"
exit $rc
register: run_tox
ignore_errors: true
- name: Show test cases output
debug: var=run_tox.stdout_lines
failed_when: run_tox is failed