summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-07-21 17:21:04 +0300
committerimarom <imarom@cisco.com>2016-07-21 17:31:10 +0300
commit6d028fcd21df1d1954f679443ffddc35364552f7 (patch)
tree57a8d3e52cacad4b5895614770e28bdc5dcb1eba /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
parent340372e2cbe5b0744896dd97793e2b0e246c25a4 (diff)
faster TUI: no flickers and more...
1. made stdout full buffered (no in-middle print) 2. added TAB for filenames auto-complete
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
index 1b417d65..caa5aea8 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
@@ -396,6 +396,10 @@ class CCmdArgParser(argparse.ArgumentParser):
self.cmd_name = kwargs.get('prog')
+ # hook this to the logger
+ def _print_message(self, message, file=None):
+ self.stateless_client.logger.log(message)
+
def has_ports_cfg (self, opts):
return hasattr(opts, "all_ports") or hasattr(opts, "ports")