summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/console/trex_console.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-04-12 18:01:43 +0300
committerimarom <imarom@cisco.com>2016-04-12 18:02:08 +0300
commit87bac1abebe2f5a853e32301a68b9f6adf97de99 (patch)
treeda9d169f819cdddb0e6c4ed9aa09d3051ef7227e /scripts/automation/trex_control_plane/stl/console/trex_console.py
parent2c00ae277f8c50ebeec17f0e059b17f2b4ba2a07 (diff)
added checks for warnings on examples
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console/trex_console.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/console/trex_console.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_console.py b/scripts/automation/trex_control_plane/stl/console/trex_console.py
index 94cb4009..cb266505 100755
--- a/scripts/automation/trex_control_plane/stl/console/trex_console.py
+++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py
@@ -572,7 +572,8 @@ class TRexConsole(TRexGeneralCmd):
exe = './trex-console --top -t -q -s {0} -p {1} --async_port {2}'.format(info['server'], info['sync_port'], info['async_port'])
cmd = ['/usr/bin/xterm', '-geometry', '111x48', '-sl', '0', '-title', 'trex_tui', '-e', exe]
- self.terminal = subprocess.Popen(cmd)
+ # detach child
+ self.terminal = subprocess.Popen(cmd, preexec_fn = os.setpgrp)
return