epc: add run function to EPC

this allows, for example, to run a ping originating from the core to the UE

Change-Id: Id86c61cbccd41b77f94f125d8d127e2ab5e46cd9
This commit is contained in:
Andre Puschmann 2020-05-27 18:47:43 +02:00
parent 61d150b115
commit aa7b5b7751
1 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,15 @@ class EPC(log.Origin, metaclass=ABCMeta):
return epc_class(testenv, run_node)
def run_wait(self, name, popen_args):
''' Execute process on EPC node, useful for MT traffic '''
if self._run_node.is_local():
proc = process.Process(name, self.run_dir, popen_args)
else:
proc = self.rem_host.RemoteProcess(name, popen_args)
proc.launch_sync()
return proc
###################
# PUBLIC (test API included)
###################