summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-02-06 14:15:19 +0200
committerimarom <imarom@cisco.com>2017-02-06 14:15:19 +0200
commita393247f71ea669e738d5e89d6b51e1638c9baa2 (patch)
tree9e4e1f7bb235b32989ac81ae6c45d5538451c65b /scripts/automation/trex_control_plane/stl/trex_stl_lib
parentbcea02625fb2ce43ee81e56320941dfd8ff10327 (diff)
added another functional test - PING
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_exceptions.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_exceptions.py
index fa8163b8..79a001fe 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_exceptions.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_exceptions.py
@@ -23,9 +23,9 @@ class STLError(Exception):
s += format_text("\nFull error report:\n\n", 'underline')
- for line in reversed(self.tb):
+ for line in reversed(self.tb[:-1]):
fname, lineno, func, src = os.path.split(line[0])[1], line[1], line[2], line[3]
- s += " {:}:{:<20} - '{}'\n".format(format_text(fname, 'bold'), format_text(lineno, 'bold'), format_text(src.strip(), 'bold'))
+ s += " {:<50} - '{}'\n".format(format_text(fname, 'bold') + ':' + format_text(lineno, 'bold'), format_text(src.strip(), 'bold'))
return s