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.
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 1aedcf2..72471d8 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -155,12 +155,13 @@
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