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
1 changed files with 2 additions and 2 deletions

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)
# between $config_root_dir (exclusive) and $(pwd) (inclusive)
shopt -s nullglob
if [ "$test_dir" = "." ]; then
t=$(pwd) # absolute path
if [ "$t" = "$config_root_dir" ]; then
components=$(basename $(pwd))
else
t=$(pwd) # absolute path
components=$(echo ${t#$config_root_dir/} | sed 's/\// /g')
fi
for i in $components; do