summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/automation/regression/aggregate_results.py2
-rwxr-xr-xscripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/regression/aggregate_results.py b/scripts/automation/regression/aggregate_results.py
index 35ec80d0..eb0632ec 100755
--- a/scripts/automation/regression/aggregate_results.py
+++ b/scripts/automation/regression/aggregate_results.py
@@ -457,7 +457,7 @@ if __name__ == '__main__':
if len(error_tests):
html_output += '\n<button onclick=tgl_cat("cat_tglr_{error}")>{error}</button>'.format(error = ERROR_CATEGORY)
# Setups buttons
- for category in setups.keys():
+ for category in sorted(setups.keys()):
category_arr.append(category)
html_output += '\n<button onclick=tgl_cat("cat_tglr_%s")>%s</button>' % (category_arr[-1], category)
# Functional buttons
diff --git a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py
index 7f241620..fd409b16 100755
--- a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py
+++ b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py
@@ -1296,6 +1296,7 @@ class CTRexResult(object):
if not len(res['histogram']):
result[max_port] = 0
continue
+ result[max_port] = 5 # if sum below will not get to filtered amount, use this value
sum_high = 0.0
for elem in reversed(res['histogram']):
sum_high += elem['val']