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.
This commit is contained in:
Holger Hans Peter Freyther 2015-07-13 11:23:53 +02:00
parent 1e365477ee
commit a2c41c42b1
1 changed files with 4 additions and 3 deletions

View File

@ -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