This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Andre Puschmann gerrit-no-reply at lists.osmocom.orgAndre Puschmann has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17560 )
Change subject: process: add stdin_write method to communicate with child on stdin
......................................................................
process: add stdin_write method to communicate with child on stdin
Change-Id: I3e5d843911998bb50726d93e3dfd3de584dc81a5
---
M src/osmo_gsm_tester/process.py
1 file changed, 7 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
diff --git a/src/osmo_gsm_tester/process.py b/src/osmo_gsm_tester/process.py
index f399b29..5d02ab5 100644
--- a/src/osmo_gsm_tester/process.py
+++ b/src/osmo_gsm_tester/process.py
@@ -350,6 +350,13 @@
def wait(self, timeout=300):
MainLoop.wait(self, self.terminated, timeout=timeout)
+ def stdin_write(self, cmd):
+ '''
+ Send a cmd to the stdin of a process (convert to byte before)
+ '''
+ if self.process_obj.stdin is not None:
+ self.process_obj.stdin.write(cmd.encode("utf-8"))
+ self.process_obj.stdin.flush()
class RemoteProcess(Process):
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17560
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I3e5d843911998bb50726d93e3dfd3de584dc81a5
Gerrit-Change-Number: 17560
Gerrit-PatchSet: 4
Gerrit-Owner: Andre Puschmann <andre at softwareradiosystems.com>
Gerrit-Reviewer: Andre Puschmann <andre at softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200323/65e59280/attachment.htm>