From 0eb15b2e851b5f50669633678143c5a1d3a7d95b Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Sun, 3 Apr 2016 21:53:51 +0300 Subject: remove timeouts from trex_client pkg tests, filter out 0.1% of highest latencies, increase priority of TRex process --- .../automation/trex_control_plane/stf/examples/stf_example.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'scripts/automation/trex_control_plane/stf/examples/stf_example.py') diff --git a/scripts/automation/trex_control_plane/stf/examples/stf_example.py b/scripts/automation/trex_control_plane/stf/examples/stf_example.py index f6ebffe7..f57435bf 100755 --- a/scripts/automation/trex_control_plane/stf/examples/stf_example.py +++ b/scripts/automation/trex_control_plane/stf/examples/stf_example.py @@ -1,8 +1,9 @@ import argparse import stf_path from trex_stf_lib.trex_client import CTRexClient +from pprint import pprint -# sample TRex stateless run +# sample TRex stateful run # assuming server daemon is running. def minimal_stateful_test(server): @@ -14,9 +15,8 @@ def minimal_stateful_test(server): c = 1, m = 700, f = 'cap2/http_simple.yaml', - d = 5, + d = 30, l = 1000, - trex_development = True, ) print('Sample until end') @@ -36,8 +36,9 @@ def minimal_stateful_test(server): print('CPU utilization:') print(result.get_value_list('trex-global.data.m_cpu_util')) - #print('Dump of *latest* result sample, uncomment to see it all') - #print(result.get_latest_dump()) + #Dump of *latest* result sample, uncomment to see it all + #print('Latest result dump:') + #pprint(result.get_latest_dump()) if __name__ == '__main__': -- cgit 1.2.3-korg