aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-13 11:23:53 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-13 11:30:13 +0200
commita2c41c42b1a8558965f201e43dcaec6bb8e64b35 (patch)
tree014f98746c2738d35e8aa72f2a0510a1f5fc6f89 /openbsc
parent1e365477ee5e4dc708b94474b4e094ea3c21d95b (diff)
sms: Fix the non-SMPP mode of the test
List needs to be executed from within the right configuration node to see if it is available or not. list on the toplevel will uncoditionally show "smpp" as part of the logging config.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/vty_test_runner.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 1aedcf21c..72471d876 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -155,12 +155,13 @@ class TestVTYNITB(TestVTYGenericBSC):
return "smpp" in res
def testSmppFirst(self):
- if not self.checkForSmpp():
- return
-
# enable the configuration
self.vty.enable()
self.vty.command("configure terminal")
+
+ if not self.checkForSmpp():
+ return
+
self.vty.command("smpp")
# check the default