[PATCH] nitb: Add a test for "show network" in the python testsuite.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Ciaby ciaby at autistici.org
Thu Mar 6 16:20:55 UTC 2014


Added to detect breakage in the VTY interface, caused by:
a9fae1ae66df57f76a0aedbd0b56228959d37d56
bsc: rf_ctrl will always be created, remove the NULL checks
---
 openbsc/tests/vty_test_runner.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 7c8fe8c..9975d85 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -248,6 +248,10 @@ class TestVTYNITB(TestVTYGenericBSC):
         res = self.vty.command("show paging-group 0 1234567")
         self.assertEquals(res, "%Paging group for IMSI 1234567 on BTS #0 is 7")
 
+    def testShowNetwork(self):
+        res = self.vty.command("show network")
+        self.assert_(res.startswith('BSC is on Country Code') >= 0)
+
 class TestVTYBSC(TestVTYGenericBSC):
 
     def vty_command(self):
-- 
1.7.9.5




More information about the OpenBSC mailing list