Skip to content

Commit 47aa9e9

Browse files
author
Scott Davidson
committed
Relax sacct state assertion
1 parent f6311b6 commit 47aa9e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible/ci/check_sacct_hpctests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
gather_facts: false
33
become: true
44
vars:
5-
sacct_stdout_expected: |- # based on CI running hpctests as the first job - NB note no trailing newline
5+
sacct_stdout_expected: |- # based on CI running hpctests as the first job
66
JobID,JobName,State
77
1,pingpong.sh,COMPLETED
88
2,pingmatrix.sh,COMPLETED
@@ -18,10 +18,10 @@
1818
register: sacct
1919
- name: Check info for ended jobs
2020
assert:
21-
that: sacct.stdout == sacct_stdout_expected
21+
that: sacct_stdout_expected in sacct.stdout
2222
fail_msg: |
2323
Expected:
2424
--{{ sacct_stdout_expected }}--
2525
Got:
2626
--{{ sacct.stdout }}--
27-
success_msg: sacct shows hpctests jobs as first and only jobs
27+
success_msg: sacct shows hpctests jobs as first jobs in list

0 commit comments

Comments
 (0)