diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-05 12:19:34 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-05 12:50:23 +0200 |
commit | 3e0e8a32f3eb6f300097a9eed82fb4f1869598b9 (patch) | |
tree | dfd04052eb05cf0a51b365ec615e8e1265c8f4da | |
parent | 3cb1979b17c1f642d6e9e61c66751ef371ed1834 (diff) |
Wrap long env values
https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-healthcheck-kali-k8s_smoke-run/162/console
Change-Id: If6837a85f54309ad7c221144570c10eb1615993d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 16742834bbca1a7074f19a57d004a1b41068744d)
-rw-r--r-- | xtesting/utils/env.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xtesting/utils/env.py b/xtesting/utils/env.py index 73acf3b8..042ab675 100644 --- a/xtesting/utils/env.py +++ b/xtesting/utils/env.py @@ -10,6 +10,7 @@ # pylint: disable=missing-docstring import os +import textwrap import prettytable @@ -39,5 +40,6 @@ def string(): header_style='upper', padding_width=5, field_names=['env var', 'value']) for env_var in INPUTS: - msg.add_row([env_var, get(env_var) if get(env_var) else '']) + msg.add_row([env_var, textwrap.fill(get(env_var), width=50) if get( + env_var) else '']) return msg |