[PATCH] openbsc[master]: vty tests: more attempts to resolve sporadic 'Broken Pipe' e...

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Feb 3 03:18:48 UTC 2017


Review at  https://gerrit.osmocom.org/1735

vty tests: more attempts to resolve sporadic 'Broken Pipe' error

Change-Id: I3d833ddf8c62845fe68d1e5503332541a4a04a2d
---
M openbsc/tests/vty_test_runner.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/35/1735/1

diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 7b25d10..3fbe20d 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -1267,10 +1267,12 @@
                 break
             except:
                 print "\tfailed sending IPA identity at", time.strftime("%T")
+                print "\tself.proc.poll(): ", repr(self.proc.poll())
                 if retries < 1:
                     print "\tgiving up"
                     raise
-                print "\tretrying (%d attempts left)" % retries
+                print "\tretrying in a second (%d attempts left)" % retries
+                time.sleep(1)
                 retries -= 1
     else:
         if (verbose):

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d833ddf8c62845fe68d1e5503332541a4a04a2d
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>


More information about the gerrit-log mailing list