summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/docker_control.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-29 13:02:43 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-29 14:24:54 +0000
commitbb84cdcfd5c5d4761778518a8e9d3c0ec7e7e949 (patch)
tree04dd837bf0374e7520fd234ff16fafc1115820df /test/scenario_test/docker_control.py
parent3d808b5c0d6cbad6d62c2d267ca72d0e7605fb9b (diff)
scenario_test: add option to specify exabgp_path
can be used to use local exabgp repository Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/docker_control.py')
-rw-r--r--test/scenario_test/docker_control.py11
1 files changed, 9 insertions, 2 deletions
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()