aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/utils
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-09-05 12:19:34 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-09-05 12:49:38 +0200
commit16742834bbca1a7074f19a57d004a1b41068744d (patch)
treeac92ddc2f59adbbb6540e8e7387eba73d7dc2993 /xtesting/utils
parent242696fe51c7dc3530587350550ab07164706e56 (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>
Diffstat (limited to 'xtesting/utils')
-rw-r--r--xtesting/utils/env.py4
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