fix bug in deploy

This commit is contained in:
fumingwei
2020-10-27 12:14:25 +06:00
parent dc9336ae26
commit bda0faa7ff
44 changed files with 1676 additions and 100 deletions

View 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"

View 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