summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-27 02:05:42 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-03 22:52:19 +0100
commitdf674156e20a56f77a3a09f3891c271f680c80de (patch)
treeecf86e825ab2b5825f78189ee5e43a26b11010b7
parent5b01f8bdd36d505d8f733bbed75e9f14e464357f (diff)
python tests: vty and smpp: speed up >10 times
osmo-python-tests now includes code that retries connecting the VTY socket and needs no external sleep()ing. This flies through most tests without any sleep() at all. See osmo-python-tests.git change-id Icc337f52a93d5fe31fc4ff235ccaf4e0fe75fa39 Change-Id: I42161d9716fe5bb0ef1c56e4bfb770bb99bbca7a
-rw-r--r--openbsc/tests/smpp_test_runner.py1
-rw-r--r--openbsc/tests/vty_test_runner.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/openbsc/tests/smpp_test_runner.py b/openbsc/tests/smpp_test_runner.py
index 71b9d6c..2fd144b 100644
--- a/openbsc/tests/smpp_test_runner.py
+++ b/openbsc/tests/smpp_test_runner.py
@@ -48,7 +48,6 @@ class TestVTYBase(unittest.TestCase):
except OSError:
print >> sys.stderr, "Current directory: %s" % os.getcwd()
print >> sys.stderr, "Consider setting -b"
- time.sleep(1)
appstring = self.vty_app()[2]
appport = self.vty_app()[0]
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 203b42c..07cbbc7 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -52,7 +52,6 @@ class TestVTYBase(unittest.TestCase):
except OSError:
print >> sys.stderr, "Current directory: %s" % os.getcwd()
print >> sys.stderr, "Consider setting -b"
- time.sleep(1)
appstring = self.vty_app()[2]
appport = self.vty_app()[0]