From bb84cdcfd5c5d4761778518a8e9d3c0ec7e7e949 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 29 Mar 2015 13:02:43 +0000 Subject: scenario_test: add option to specify exabgp_path can be used to use local exabgp repository Signed-off-by: ISHIDA Wataru --- test/scenario_test/docker_control.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/scenario_test/docker_control.py') diff --git a/test/scenario_test/docker_control.py b/test/scenario_test/docker_control.py index 84bf9a54..91172040 100644 --- a/test/scenario_test/docker_control.py +++ b/test/scenario_test/docker_control.py @@ -441,7 +441,7 @@ def init_ipv6_test_env_executor(quagga_num, use_local, go_path, log_debug=False) print "complete initialization of test environment." -def init_malformed_test_env_executor(conf_file, use_local, go_path, log_debug=False): +def init_malformed_test_env_executor(conf_file, use_local, go_path, exabgp_path, log_debug=False): print "start initialization of exabgp test environment." if docker_container_check() or bridge_setting_check(): @@ -482,7 +482,14 @@ def init_malformed_test_env_executor(conf_file, use_local, go_path, log_debug=F make_startup_file(log_opt=opt) change_owner_to_root(CONFIG_DIR) - change_exabgp_version() + + if exabgp_path != "": + cmd = "cp -rf %s %s" % (exabgp_path, CONFIG_DIR) + local(cmd, capture=True) + cmd = "docker exec exabgp cp -rf " + SHARE_VOLUME + "/exabgp /root/" + local(cmd, capture=True) + else: + change_exabgp_version() start_gobgp() -- cgit v1.2.3