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

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
Fri Feb 3 04:26:29 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

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


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(-)

Approvals:
  Jenkins Builder: Verified
  Holger Freyther: Looks good to me, approved



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: merged
Gerrit-Change-Id: I3d833ddf8c62845fe68d1e5503332541a4a04a2d
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list