File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1010 failed_when :
1111 - result.rc != 0
1212
13+ # This is added so that the test is not included when it shouldn't be
14+ # If the when is added to the test task, the resulting task name in
15+ # XML is "verify_that_the_item_kind__item_name_cr_is_item_condition"
16+ # Which might be okay, if polarion ignores the unknown testcases
17+ # If polarion is ignoring the unknown testcases, then we don't need to
18+ # mark anything with a test prefix
19+ - name : Determine whether to mark the CR ready test as a test
20+ ansible.builtin.set_fact :
21+ run_cr_ready_test : true
22+ when :
23+ - common_cr_ready_test_id is defined
24+ - item.condition_type is defined
25+
1326- name : |
14- TEST Verify that the {{ item.kind }} {{ item.name }} CR is {{ item.condition_type }}
27+ {{ ' TEST' if run_cr_ready_test | bool }} Verify that the {{ item.kind }} {{ item.name }} CR is {{ item.condition_type }}
1528 {{ common_cr_ready_test_id }}
1629 ansible.builtin.command :
1730 cmd : |
2033 changed_when : false
2134 failed_when :
2235 - result.stdout != "True"
23- when :
24- - common_cr_ready_test_id is defined
25- - item.condition_type is defined
You can’t perform that action at this time.
0 commit comments