aboutsummaryrefslogtreecommitdiffstats
path: root/docker/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/common.sh')
-rwxr-xr-xdocker/common.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/common.sh b/docker/common.sh
index aabc32cb..f21263c7 100755
--- a/docker/common.sh
+++ b/docker/common.sh
@@ -20,11 +20,15 @@
#
# If it is not provided, take the existing one in the functest repo
#
+mkdir -p /home/opnfv/functest/conf
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...