fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/python/osmo-python-tests/+/32929 )


Change subject: osmoutil: print return code in end_proc()
......................................................................

osmoutil: print return code in end_proc()

Change-Id: If11616be6e9afc85814fa0b494e231cc7530459c
Related: OS#5665
---
M osmopy/osmoutil.py
1 file changed, 12 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests 
refs/changes/29/32929/1

diff --git a/osmopy/osmoutil.py b/osmopy/osmoutil.py
index ec9c8c3..ecd88f2 100755
--- a/osmopy/osmoutil.py
+++ b/osmopy/osmoutil.py
@@ -68,7 +68,8 @@
         print("Killed child process")
     elif waited_time > .002:
         print("Terminating took %.3fs" % waited_time)
-    proc.wait()
+    rc = proc.wait()
+    print("Process returned code: %d" % rc)


 """Add a directory to sys.path, try to import a config file."""

--
To view, visit https://gerrit.osmocom.org/c/python/osmo-python-tests/+/32929
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Change-Id: If11616be6e9afc85814fa0b494e231cc7530459c
Gerrit-Change-Number: 32929
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to