mirror of
https://github.com/schoebel/mars
synced 2024-12-12 09:45:41 +00:00
test_suite: correct option --config_root_dir
This commit is contained in:
parent
235ea41020
commit
cc7022d06a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user