testconfig: Do not fail due wrong numbers
Fix the script and don't fail
diff --git a/osmopy/osmotestconfig.py b/osmopy/osmotestconfig.py
index 8f9746d..ce47cf3 100644
--- a/osmopy/osmotestconfig.py
+++ b/osmopy/osmotestconfig.py
@@ -28,7 +28,7 @@
def test_config(app_desc, config, tmpdir, verbose=True):
try:
err = 0
- if test_config_atest(app_desc, config, verify_doc, verbose) > 0:
+ if test_config_atest(app_desc, config, verify_doc, verbose)[0] > 0:
err += 1
newconfig = copy_config(tmpdir, config)
@@ -93,7 +93,8 @@
def write_config(vty):
new_config = vty.enabled_command("write")
- return new_config.split(' ')[-1]
+ print new_config.split(' ')[-1]
+ return 0
# The only purpose of this function is to verify a working vty