Browse Source

Force failure when test execution times out

Change-Id: Ie585f6de6c760f02a8b2cf169a0f4a768f52db95
changes/01/780201/1
Eduardo Olivares 5 months ago
parent
commit
84d8592c82
  1. 9
      roles/tobiko-tox/tasks/tox.yaml

9
roles/tobiko-tox/tasks/tox.yaml

@ -54,3 +54,12 @@
failed_when:
- not (ignore_test_failures | bool)
- run_tox.rc not in tox_expected_rcs
- name: 'raise error in case of timeout'
debug:
msg: 'timeout during the execution of the tests'
when: run_tox is failed
failed_when:
- (run_tox.stdout_lines | length) > 0
- run_tox.stdout_lines | regex_search('run_tests: ERROR.*run_tests.py timeout out after')
Loading…
Cancel
Save