diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-13 11:35:59 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-13 11:38:45 +0100 |
commit | 00b51ffe114702ce207aa7ba2e40f01984c0c57c (patch) | |
tree | a5b7f6a440259832b7fe0dc0f1a8a6b2693f682c /docker/common.sh | |
parent | 870587bd57ed00fb1b172ee9848f7cdfb3d04270 (diff) |
Place config_functest.yaml outside the functest repo
If config_functest.yaml is given it will be placed in:
/home/opnfv/functest/conf/config_functest.yaml
If not given:
copy default from repo to that location
Change-Id: I816bf5ccf8e0a5b8ebde2a0ab924657533f49127
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'docker/common.sh')
-rwxr-xr-x | docker/common.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/common.sh b/docker/common.sh index aabc32cb..eccdc252 100755 --- a/docker/common.sh +++ b/docker/common.sh @@ -22,9 +22,12 @@ # config_file=/home/opnfv/functest/conf/config_functest.yaml if [ ! -f ${config_file} ]; then - config_file=$(find / -name config_functest.yaml) + default_config_file=$(find /home/opnfv/repos -name config_functest.yaml) + cp $default_config_file $config_file + echo "config_functest.yaml not provided. Using default one" fi + # Parse config_functest.yaml file # TODO: this is not the best way to parse a yaml file in bash... |