skip non-executable directories
This commit is contained in:
parent
d2290911df
commit
d504f83141
@ -1,3 +1,4 @@
|
|||||||
export tmp=$(mktemp -d)
|
export tmp=$(mktemp -d)
|
||||||
export testsuite=$tmp/test
|
export testsuite=$tmp/test
|
||||||
|
mkdir -p $testsuite
|
||||||
touch $testsuite/.urchin
|
touch $testsuite/.urchin
|
||||||
|
8
urchin
8
urchin
@ -140,6 +140,7 @@ recurse() {
|
|||||||
|
|
||||||
validate_strings "${potential_test}" 'Test file names'
|
validate_strings "${potential_test}" 'Test file names'
|
||||||
|
|
||||||
|
if [ -x "${potential_test}" ]; then
|
||||||
if [ -d "${potential_test}" ]; then
|
if [ -d "${potential_test}" ]; then
|
||||||
(
|
(
|
||||||
cd -- "${potential_test}"
|
cd -- "${potential_test}"
|
||||||
@ -174,8 +175,7 @@ recurse() {
|
|||||||
wait
|
wait
|
||||||
if test -f teardown_dir; then . ./teardown_dir; fi
|
if test -f teardown_dir; then . ./teardown_dir; fi
|
||||||
)
|
)
|
||||||
else
|
elif [ -f "${potential_test}" ]; then
|
||||||
if [ -x "${potential_test}" ]; then
|
|
||||||
cd -- "$(dirname -- "${potential_test}")"
|
cd -- "$(dirname -- "${potential_test}")"
|
||||||
|
|
||||||
# Determine the environment variable to define for test scripts
|
# Determine the environment variable to define for test scripts
|
||||||
@ -234,11 +234,13 @@ recurse() {
|
|||||||
fi
|
fi
|
||||||
done < "${shell_list}"
|
done < "${shell_list}"
|
||||||
wait
|
wait
|
||||||
|
else
|
||||||
|
echo "${potential_test}: Neither file nor directory!?" > /dev/stderr
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Shell is ''
|
# Shell is ''
|
||||||
printf "${potential_test}\t\tskip\t0\n" >> "${urchin_tmp}"/log
|
printf "${potential_test}\t\tskip\t0\n" >> "${urchin_tmp}"/log
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
report_outcome() {
|
report_outcome() {
|
||||||
|
Loading…
Reference in New Issue
Block a user