aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2024-07-24 13:56:57 +0200
committerVratko Polak <vrpolak@cisco.com>2024-07-26 08:53:57 +0000
commite76cf3ecd5cf4b95b087aea9407902e9349010c5 (patch)
tree82f9d5f81171535115750043778bbfe4588f10b3
parentd3bb8ea95db40d074d3f35996fffe404fab42ba9 (diff)
feat(TGen): Include reason on TRex error
This adds noise to console output, but prevents other possible bugs from looking just like CSIT-1936. Ticket: CSIT-1936 Change-Id: If30c59a96ebd9cec6aea40ca820b775d5f3548c6 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
-rw-r--r--resources/libraries/python/TrafficGenerator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index 936cb3a06d..950e3c42ea 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
@@ -524,7 +524,7 @@ class TrafficGenerator(AbstractMeasurer):
command_line.add(f"'{value}'")
stdout, _ = exec_cmd_no_error(
node, command_line,
- message="T-Rex STL runtime error!"
+ message="T-Rex STL runtime error!", include_reason=True
)
self._parse_traffic_results(stdout)
@@ -763,7 +763,7 @@ class TrafficGenerator(AbstractMeasurer):
self._rate = float(rate[:-3]) if "pps" in rate else float(rate)
stdout, _ = exec_cmd_no_error(
self._node, command_line, timeout=int(duration) + 60,
- message="T-Rex STL runtime error"
+ message="T-Rex STL runtime error", include_reason=True
)
if async_call: