X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=docker%2Fcommon.sh;h=eccdc252ab673f22f0ffd1ac26477b788ba721a0;hb=00b51ffe114702ce207aa7ba2e40f01984c0c57c;hp=aabc32cbec4cd7812a8f8ade4159fe25c04b356e;hpb=3d7d28eb80b80bfd4795a28bb1d8e6fadacbdada;p=functest.git diff --git a/docker/common.sh b/docker/common.sh index aabc32cbe..eccdc252a 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...