From a2c41c42b1a8558965f201e43dcaec6bb8e64b35 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 13 Jul 2015 11:23:53 +0200 Subject: 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. --- openbsc/tests/vty_test_runner.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openbsc/tests') 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 -- cgit v1.2.3