aboutsummaryrefslogtreecommitdiffstats
path: root/func/args_handler.py
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-10-22 11:58:03 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-10-25 12:43:56 +0800
commit62d00c20476d8e25974c2f78ec9c2bd05d8f2412 (patch)
treeaa1ad21387f45aeb12dcf39bd8f0f295e672530b /func/args_handler.py
parent36f6aa40ca02ef9ef1d24e61af337a960b8a76cd (diff)
Remove Qtip private key files in repos
1. Automaticly genegrate private key files. 2. remove the key files in repo at last. 3. remove public key from authorized_keys of compute hosts. JIRA: QTIP-110 Change-Id: Ie22f3f195edf650e690a2ed69df1af191953068f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'func/args_handler.py')
-rw-r--r--func/args_handler.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/func/args_handler.py b/func/args_handler.py
index 59712800..582a24b1 100644
--- a/func/args_handler.py
+++ b/func/args_handler.py
@@ -59,10 +59,12 @@ def prepare_ansible_env(benchmark_test_case):
def run_benchmark(installer_type, pwd, benchmark, benchmark_details,
proxy_info, env_setup, benchmark_test_case):
driver = Driver()
- return driver.drive_bench(installer_type, pwd, benchmark,
- env_setup.roles_dict.items(),
- _get_f_name(benchmark_test_case),
- benchmark_details, env_setup.ip_pw_dict.items(), proxy_info)
+ result = driver.drive_bench(installer_type, pwd, benchmark,
+ env_setup.roles_dict.items(),
+ _get_f_name(benchmark_test_case),
+ benchmark_details, env_setup.ip_pw_dict.items(), proxy_info)
+ env_setup.cleanup_authorized_keys()
+ return result
def prepare_and_run_benchmark(installer_type, pwd, benchmark_test_case):