File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
roles/tests/tests_behat/tasks Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 32
32
- behat.fail_builds
33
33
34
34
- name : Run Behat command without failing build.
35
- ansible.builtin.command :
36
- cmd : " {{ behat.bin }} --config={{ behat.config_file }} --tags={{ behat.tags }} {{ _behat_outputs }}"
37
- chdir : " {{ behat.working_dir }}"
38
- register : _tests_behat_output # if we do not fail the build, we do not see the output if tests fail
39
- failed_when : false
40
35
when :
41
36
- behat.outputs | length > 0
42
37
- not behat.fail_builds
38
+ block :
39
+ - name : Run Behat command.
40
+ ansible.builtin.command :
41
+ cmd : " {{ behat.bin }} --config={{ behat.config_file }} --tags={{ behat.tags }} {{ _behat_outputs }}"
42
+ chdir : " {{ behat.working_dir }}"
43
+ register : _tests_behat_output # if we do not fail the build, we do not see the output if tests fail
44
+ failed_when : false
43
45
44
- - name : Show Behat output.
45
- ansible.builtin.debug :
46
- msg : " {{ _tests_behat_output.stdout }}"
47
- when :
48
- - _tests_behat_output is defined
49
- - _tests_behat_output.stdout
50
- - behat.show_results
46
+ - name : Show Behat output.
47
+ ansible.builtin.debug :
48
+ msg : " {{ _tests_behat_output.stdout }}"
49
+ when : behat.show_results
You can’t perform that action at this time.
0 commit comments