Skip to content

Commit 817fa3e

Browse files
authored
[GHA] Add test for variable name in test tasks (#125)
1 parent 9b196df commit 817fa3e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ci/github/test_logger.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@
3636
when: true
3737
fail:
3838
msg: "If the task fails, the status will be reported since there's a test ID."
39+
40+
- name: "Set the name based on a var input"
41+
set_fact:
42+
testid: "RHOSO-1234"
43+
- name: "run test with variable name - {{ testid }}"
44+
debug: msg="test"

ci/github/test_logger_expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ RHELOSP-042=passed
66
RHELOSP-043=passed
77
RHELOSP-054=passed
88
RHOSO-078=failed
9+
RHOSO-1234=passed

0 commit comments

Comments
 (0)