Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Place config_functest.yaml outside the functest repo
[functest.git]
/
docker
/
common.sh
diff --git
a/docker/common.sh
b/docker/common.sh
index
aabc32c
..
eccdc25
100755
(executable)
--- 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=/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
fi
+
# Parse config_functest.yaml file
# TODO: this is not the best way to parse a yaml file in bash...
# Parse config_functest.yaml file
# TODO: this is not the best way to parse a yaml file in bash...