From ed7f8ee3697be3751dc6cfb243cc55092ddd1dd5 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 25 May 2017 04:35:18 -0400 Subject: Change the directories of results and some files to DOVETAIL_HOME JIRA: DOVETAIL-438 1. Need an env variable DOVETAIL_HOME in env_config.sh 2. env_config.sh, pod.yaml and id_rsa should be put in path DOVETAIL_HOME/pre_config 3. the results will also be put in this path 4. no need to give the path of openstack credential file while running a testsuite 5. if running with the code, source the env_config.sh file before running source $DOVETAIL_HOME/env_config.sh dovetail run --testsuite 6. if running with Dovetail docker image docker run -it --privileged=true -e DOVETAIL_HOME= -v : -v /var/run/docker.sock:/var/run/docker.sock opnfv/dovetail:latest /bin/bash Change-Id: Ia23078f27a34e293d0075e49c673930f41069cb6 Signed-off-by: xudan --- dovetail/test_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dovetail/test_runner.py') diff --git a/dovetail/test_runner.py b/dovetail/test_runner.py index 0482c2ca..cbc7e2d3 100644 --- a/dovetail/test_runner.py +++ b/dovetail/test_runner.py @@ -40,7 +40,7 @@ class DockerRunner(object): src_path = os.path.join(file_path, src_file) if exist_file: file_path = dt_cfg.dovetail_config[self.type]['config']['dir'] - src_path = os.path.join(file_path, exist_file) + src_path = os.path.join(file_path, 'pre_config', exist_file) Container.pre_copy(container_id, src_path, dest_path) return dest_path -- cgit 1.2.3-korg