fix bug in deploy
This commit is contained in:
11
roles/tsg-diagnose-verify-succ/tasks/main.yml
Normal file
11
roles/tsg-diagnose-verify-succ/tasks/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: "register tsg-diagnose exec result"
|
||||
shell: docker exec -it unittest_tsg-diagnose /bin/sh -c 'python3 /root/unittest/tsg_diagnose.py'
|
||||
register: tsgdiagnoseresults
|
||||
|
||||
- name: assert
|
||||
assert:
|
||||
that:
|
||||
- tsgdiagnoseresults.stdout.find('FAIL') == -1
|
||||
fail_msg: "FAIL"
|
||||
success_msg: "PASS"
|
||||
9
roles/tsg-diagnose-verify-succ/tasks/main.yml.bak
Normal file
9
roles/tsg-diagnose-verify-succ/tasks/main.yml.bak
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: "register tsg-diagnose exec result"
|
||||
shell: docker exec -it unittest_tsg-diagnose /bin/sh -c 'python3 /root/unittest/tsg_diagnose.py'
|
||||
register: tsgdiagnoseresults
|
||||
|
||||
- name: "check the results"
|
||||
fail:
|
||||
msg: fail
|
||||
when: tsgdiagnoseresults.stdout.find('FAIL') != -1
|
||||
Reference in New Issue
Block a user