[MERGED] python/osmo-python-tests[master]: osmodumpdoc: print called commands and OSError messages

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Sun Sep 24 20:56:51 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: osmodumpdoc: print called commands and OSError messages
......................................................................


osmodumpdoc: print called commands and OSError messages

Change-Id: Ib044cbb8a1b8e02cbe6852f785c75b5c7aae6174
---
M osmopy/osmodumpdoc.py
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Neels Hofmeyr: Verified
  Harald Welte: Looks good to me, approved



diff --git a/osmopy/osmodumpdoc.py b/osmopy/osmodumpdoc.py
index ce9fec4..3d3f3b6 100644
--- a/osmopy/osmodumpdoc.py
+++ b/osmopy/osmodumpdoc.py
@@ -42,9 +42,11 @@
         print "Starting app for %s" % appname
         proc = None
         cmd = [app[1], "-c", os.path.join(confpath, configs[appname][0])]
+        print 'cd', os.path.abspath(os.path.curdir), ';', ' '.join(cmd)
         try:
             proc = subprocess.Popen(cmd, stdin=None, stdout=None)
-        except OSError:  # Probably a missing binary
+        except OSError as e:  # Probably a missing binary
+            print >> sys.stderr, e
             print >> sys.stderr, "Skipping app %s" % appname
             failures += 1
         else:

-- 
To view, visit https://gerrit.osmocom.org/3975
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib044cbb8a1b8e02cbe6852f785c75b5c7aae6174
Gerrit-PatchSet: 2
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list