[MERGED] python/osmo-python-tests[master]: vty: Print open file descriptors of the VTY test runner

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
Wed Sep 13 11:48:24 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: vty: Print open file descriptors of the VTY test runner
......................................................................


vty: Print open file descriptors of the VTY test runner

/proc/self/fd refers to the process opening the file. In this case
self will be "ls". Maybe it is better to look at the FDs open in
the test runner itself.

Change-Id: I638e94f16f4019a7b6026d1fae69e677870fb253
---
M osmopy/obscvty.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Neels Hofmeyr: Looks good to me, approved; Verified



diff --git a/osmopy/obscvty.py b/osmopy/obscvty.py
index f1f1c59..0371dc9 100755
--- a/osmopy/obscvty.py
+++ b/osmopy/obscvty.py
@@ -43,7 +43,7 @@
     global debug_tcp_sockets
     if not debug_tcp_sockets:
         return
-    cmd('ls /proc/self/fd');
+    cmd('ls /proc/' + str(os.getpid()) + '/fd');
     cmd('ss -tn');
     cmd('ss -tln');
     cmd('ps xua | grep osmo');

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I638e94f16f4019a7b6026d1fae69e677870fb253
Gerrit-PatchSet: 1
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list