From b819b57a98d142ba004d9dbc6c786c1cd9f1c76c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 31 Jan 2015 21:15:06 +0100 Subject: testconfig: Do not fail due wrong numbers Fix the script and don't fail --- osmopy/osmotestconfig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 @@ import osmopy.osmoutil as osmoutil 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 copy_config(dirname, config): 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 -- cgit v1.2.3