diff options
author | 2020-09-05 12:19:34 +0200 | |
---|---|---|
committer | 2020-09-05 12:53:22 +0200 | |
commit | 4b52d1502a63aeeb0a6b918b99d2c24c5fac8298 (patch) | |
tree | a6e6fd08b5d5a6607b51ea18202c3c71097ac8d6 /xtesting/utils | |
parent | ede0ae51e07278b3d985cac1e32605f2977e18ed (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)
Diffstat (limited to 'xtesting/utils')
-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 d3602302..b4fb3598 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 @@ -42,5 +43,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 |