summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/docker_control.py
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-05-28 15:00:21 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-06-10 16:50:29 +0900
commitf60ec00e0b3cc5dcfcf78e1a3dfd1b85be31e678 (patch)
tree343d7bd09fbff6892ad379e477a4137418301a00 /test/scenario_test/docker_control.py
parent42234c30bc98af1339752477539938d462c9969d (diff)
scenario_test: fix malformed test
Diffstat (limited to 'test/scenario_test/docker_control.py')
-rw-r--r--test/scenario_test/docker_control.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/scenario_test/docker_control.py b/test/scenario_test/docker_control.py
index 29b382b3..83918d41 100644
--- a/test/scenario_test/docker_control.py
+++ b/test/scenario_test/docker_control.py
@@ -307,6 +307,18 @@ def start_exabgp(conf_file):
local(cmd, capture=True)
+def stop_exabgp():
+ cmd = "docker exec exabgp pkill -9 python"
+ local(cmd, capture=True)
+ log_path = CONFIG_DIRR + EXABGP_LOG_FILE
+ clean_log(log_path)
+
+
+def clean_log(file_path):
+ cmd = ": > " + file_path
+ local(cmd, capture=True)
+
+
def get_notification_from_exabgp_log():
log_path = CONFIG_DIRR + EXABGP_LOG_FILE
cmd = "grep notification " + log_path + " | head -1"
@@ -564,7 +576,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, exabgp_path, log_debug=False):
+def init_malformed_test_env_executor(use_local, go_path, exabgp_path, log_debug=False):
print "start initialization of exabgp test environment."
if docker_container_check() or bridge_setting_check():
@@ -617,7 +629,6 @@ def init_malformed_test_env_executor(conf_file, use_local, go_path, exabgp_path
# run quagga docker container
docker_container_run_quagga(1, BRIDGE_0)
- start_exabgp(conf_file)
def docker_container_quagga_append_executor(quagga_num, go_path, is_route_server=True):