[PATCH] openbsc[master]: NOT FOR MERGE: testrun for vty_test_runner.py on jenkins

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 28 15:31:22 UTC 2016


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

NOT FOR MERGE: testrun for vty_test_runner.py on jenkins

Change-Id: I5f93af0155a1f465cce1f505098efb5e5e2aa9cb
---
M openbsc/tests/vty_test_runner.py
1 file changed, 9 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/68/968/1

diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index f624fc9..9ca2c90 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -1234,13 +1234,18 @@
     if (verbose):
         print "MSC is ready at " + ip
     conn = None
-    while "MSC is connected: 0" == x.vty.command("show msc connection"):
+    while True:
+        connected = x.vty.command("show msc connection")
+        if connected != "MSC is connected: 0":
+            print "'show msc connection' says: %r" % connection
+            break;
+
         conn, addr = msc.accept()
         if (verbose):
             print "MSC got connection from ", addr
     if not conn:
-	raise Exception("VTY reports MSC is connected, but I haven't"
-			" connected yet: %r %r" % (ip, port))
+        raise Exception("VTY reports MSC is connected, but I haven't"
+                        " connected yet: %r %r" % (ip, port))
     return conn
 
 def ipa_handle_small(x, verbose = False):
@@ -1343,4 +1348,4 @@
     res = unittest.TextTestRunner(verbosity=verbose_level).run(suite)
     sys.exit(len(res.errors) + len(res.failures))
 
-# vim: set shiftwidth=4 expandtab nocin ai
+# vim: shiftwidth=4 expandtab nocin ai

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f93af0155a1f465cce1f505098efb5e5e2aa9cb
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