diff options
author | 2017-02-06 14:15:19 +0200 | |
---|---|---|
committer | 2017-02-06 14:15:19 +0200 | |
commit | a393247f71ea669e738d5e89d6b51e1638c9baa2 (patch) | |
tree | 9e4e1f7bb235b32989ac81ae6c45d5538451c65b /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | bcea02625fb2ce43ee81e56320941dfd8ff10327 (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.py | 4 |
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 |