test_suite: correct option --config_root_dir

This commit is contained in:
Frank Liepold 2013-12-23 07:13:11 +01:00
parent 235ea41020
commit cc7022d06a

View File

@ -183,10 +183,10 @@ for test_dir in $(find . -type d | eval "$ignore_cmd" | eval "$sort_cmd"); do
# source all individual config files (for overrides) # source all individual config files (for overrides)
# between $config_root_dir (exclusive) and $(pwd) (inclusive) # between $config_root_dir (exclusive) and $(pwd) (inclusive)
shopt -s nullglob shopt -s nullglob
if [ "$test_dir" = "." ]; then t=$(pwd) # absolute path
if [ "$t" = "$config_root_dir" ]; then
components=$(basename $(pwd)) components=$(basename $(pwd))
else else
t=$(pwd) # absolute path
components=$(echo ${t#$config_root_dir/} | sed 's/\// /g') components=$(echo ${t#$config_root_dir/} | sed 's/\// /g')
fi fi
for i in $components; do for i in $components; do