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

2017-09-13 Thread Neels Hofmeyr
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 
Gerrit-Reviewer: Neels Hofmeyr 


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

2017-09-13 Thread Neels Hofmeyr

Patch Set 1: Verified+1

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I638e94f16f4019a7b6026d1fae69e677870fb253
Gerrit-PatchSet: 1
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther 
Gerrit-Reviewer: Neels Hofmeyr 
Gerrit-HasComments: No


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

2017-09-13 Thread Neels Hofmeyr

Patch Set 1: Code-Review+2

lol that was my fault

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I638e94f16f4019a7b6026d1fae69e677870fb253
Gerrit-PatchSet: 1
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther 
Gerrit-Reviewer: Neels Hofmeyr 
Gerrit-HasComments: No