From 3e0e8a32f3eb6f300097a9eed82fb4f1869598b9 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 5 Sep 2020 12:19:34 +0200 Subject: Wrap long env values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 16742834bbca1a7074f19a57d004a1b41068744d) --- xtesting/utils/env.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xtesting') 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 -- cgit 1.2.3-korg