From: Lou Berger Date: Fri, 26 Jan 2018 14:05:48 +0000 (-0500) Subject: bgp_l3vpn_to_bgp_xxx: avoid collision of customize.py match lutil and ltemplate changes X-Git-Tag: frr-7.1-dev~151^2~149 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d0c5acabb95e4258c25aa5df3fc3faba56787a9d;p=mirror%2Ffrr.git bgp_l3vpn_to_bgp_xxx: avoid collision of customize.py match lutil and ltemplate changes Signed-off-by: Lou Berger --- diff --git a/tests/topotests/bgp_l3vpn_to_bgp_direct/test_bgp_l3vpn_to_bgp_direct.py b/tests/topotests/bgp_l3vpn_to_bgp_direct/test_bgp_l3vpn_to_bgp_direct.py index 050f222f88..b4f4ad26e2 100755 --- a/tests/topotests/bgp_l3vpn_to_bgp_direct/test_bgp_l3vpn_to_bgp_direct.py +++ b/tests/topotests/bgp_l3vpn_to_bgp_direct/test_bgp_l3vpn_to_bgp_direct.py @@ -25,49 +25,48 @@ import os import sys import pytest -CWD = os.path.dirname(os.path.realpath(__file__)) -sys.path.append(os.path.join(CWD, '../')) -sys.path.append(CWD) +sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')) from lib.ltemplate import * def test_ltemplate_start(): - ltemplate_start(CWD) + cwd = os.path.dirname(os.path.realpath(__file__)) + ltemplate_start(cwd) def test_adjacencies(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/adjacencies.py', False, CliOnFail, CheckFunc) def test_add_routes(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/add_routes.py', False, CliOnFail, CheckFunc) def test_check_routes(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/check_routes.py', False, CliOnFail, CheckFunc) def test_cleanup_all(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/cleanup_all.py', False, CliOnFail, CheckFunc) if __name__ == '__main__': diff --git a/tests/topotests/bgp_l3vpn_to_bgp_vrf/test_bgp_l3vpn_to_bgp_vrf.py b/tests/topotests/bgp_l3vpn_to_bgp_vrf/test_bgp_l3vpn_to_bgp_vrf.py index ebc0d9f6e9..60f616c2a6 100755 --- a/tests/topotests/bgp_l3vpn_to_bgp_vrf/test_bgp_l3vpn_to_bgp_vrf.py +++ b/tests/topotests/bgp_l3vpn_to_bgp_vrf/test_bgp_l3vpn_to_bgp_vrf.py @@ -25,49 +25,48 @@ import os import sys import pytest -CWD = os.path.dirname(os.path.realpath(__file__)) -sys.path.append(os.path.join(CWD, '../')) -sys.path.append(CWD) +sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../')) from lib.ltemplate import * def test_ltemplate_start(): - ltemplate_start(CWD) + cwd = os.path.dirname(os.path.realpath(__file__)) + ltemplate_start(cwd) def test_adjacencies(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/adjacencies.py', False, CliOnFail, CheckFunc) def SKIP_test_add_routes(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/add_routes.py', False, CliOnFail, CheckFunc) def test_check_routes(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/check_routes.py', False, CliOnFail, CheckFunc) def SKIP_test_cleanup_all(): CliOnFail = None # For debugging, uncomment the next line #CliOnFail = 'tgen.mininet_cli' - CheckFunc = 'versionCheck(\'3.1\')' + CheckFunc = 'customize.versionCheck(\'3.1\')' #uncomment next line to start cli *before* script is run - #CheckFunc = 'versionCheck(\'3.1\', cli=True)' + #CheckFunc = 'customize.versionCheck(\'3.1\', cli=True)' ltemplateTest('scripts/cleanup_all.py', False, CliOnFail, CheckFunc) if __name__ == '__main__':