diff options
author | Ajay Kumar <ajay4.kumar@orange.com> | 2021-04-28 16:34:26 +0530 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-04-29 09:18:16 +0200 |
commit | 7d2fb79b5b03abdb7b0717b81c63c4906bb7c169 (patch) | |
tree | d7b7c31ea9c525516b984e4f8bcbd97c4cfe0b47 /xtesting/core | |
parent | 95611ad4a2943831f710c32867d8636f03021346 (diff) |
Allow printing playbook output to console
User can specify quiet: False in "testcases.yaml" if he wants to print
the output on console.
Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Signed-off-by: Ajay kumar <ajay4.kumar@orange.com>
Change-Id: I30fa21bdcc2ed97757cd3c0b4720f9413466833f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/core')
-rw-r--r-- | xtesting/core/ansible.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xtesting/core/ansible.py b/xtesting/core/ansible.py index 21148a18..7ccace9f 100644 --- a/xtesting/core/ansible.py +++ b/xtesting/core/ansible.py @@ -54,7 +54,8 @@ class Ansible(testcase.TestCase): try: if not os.path.exists(self.res_dir): os.makedirs(self.res_dir) - kwargs["quiet"] = True + if "quiet" not in kwargs: + kwargs["quiet"] = True kwargs["artifact_dir"] = self.res_dir runner = ansible_runner.run(**kwargs) self.details = runner.stats |