diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-31 21:15:06 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-31 21:15:06 +0100 |
commit | b819b57a98d142ba004d9dbc6c786c1cd9f1c76c (patch) | |
tree | f64da07a88812c80c161d73b26768cd57d5cc3ff /osmopy | |
parent | 4e98c266b77d0629db2e313ab527b5180b16eaa9 (diff) |
testconfig: Do not fail due wrong numbers
Fix the script and don't fail
Diffstat (limited to 'osmopy')
-rw-r--r-- | osmopy/osmotestconfig.py | 5 |
1 files 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 |