srs_enb: enable console trace, use RemoteProcess class
In order for the console trace to work over SSH this commit switches to use the default RemoteProcess class. Note that srsENB now correctly handles the SIGHUP signal. Change-Id: I26391eb8409e14b34987e0b338e10613fa157e06
This commit is contained in:
parent
3ffea80ae8
commit
c2c8221c12
|
@ -116,6 +116,10 @@ class srsENB(log.Origin):
|
|||
else:
|
||||
self.start_locally()
|
||||
|
||||
# send t+Enter to enable console trace
|
||||
self.dbg('Enabling console trace')
|
||||
self.process.stdin_write('t\n')
|
||||
|
||||
def start_remotely(self):
|
||||
self.inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('srslte')))
|
||||
lib = self.inst.child('lib')
|
||||
|
@ -155,7 +159,7 @@ class srsENB(log.Origin):
|
|||
'--log.filename=' + self.remote_log_file,
|
||||
'--pcap.filename=' + self.remote_pcap_file)
|
||||
|
||||
self.process = self.rem_host.RemoteProcessFixIgnoreSIGHUP(srsENB.BINFILE, util.Dir(srsENB.REMOTE_DIR), args, remote_env=remote_env)
|
||||
self.process = self.rem_host.RemoteProcess(srsENB.BINFILE, args, remote_env=remote_env)
|
||||
self.suite_run.remember_to_stop(self.process)
|
||||
self.process.launch()
|
||||
|
||||
|
|
Loading…
Reference in New Issue