remove another file
This commit is contained in:
parent
f3f01bb0dc
commit
cc2c60cac0
23
urchin
23
urchin
@ -584,8 +584,6 @@ report_outcome() {
|
|||||||
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
test_arg_list="${urchin_tmp}"/test_list
|
|
||||||
> "${test_arg_list}"
|
|
||||||
format=urchin
|
format=urchin
|
||||||
|
|
||||||
while [ "${#}" -gt 0 ]
|
while [ "${#}" -gt 0 ]
|
||||||
@ -642,8 +640,9 @@ you don't need to quote the TEST_SHELL variable." >&2
|
|||||||
urchin_exit;;
|
urchin_exit;;
|
||||||
-*) urchin_help >&2
|
-*) urchin_help >&2
|
||||||
urchin_exit 11;;
|
urchin_exit 11;;
|
||||||
*) if contains "${1}" "${HT}"; then
|
*) if contains "${1}" "${HT}" "${LF}"; then
|
||||||
echo 'Test file names may not contain tab characters (HT).' >&2
|
echo 'Test file names may contain all characters other than' >&2
|
||||||
|
echo 'horizontal tab (\t) and line feed (\n).' >&2
|
||||||
urchin_exit 11
|
urchin_exit 11
|
||||||
elif [ ! -e "${1}" ]; then
|
elif [ ! -e "${1}" ]; then
|
||||||
echo "No such file or directory: '${1}'" >&2
|
echo "No such file or directory: '${1}'" >&2
|
||||||
@ -661,7 +660,7 @@ in case that was an accident. Use the -f flag if you really
|
|||||||
want to run urchin on that directory.' >&2
|
want to run urchin on that directory.' >&2
|
||||||
urchin_exit 12
|
urchin_exit 12
|
||||||
fi
|
fi
|
||||||
echo "${1}" >> "${test_arg_list}" ;;
|
test_seeds="${1}${LF}${test_seeds}" ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
@ -706,20 +705,14 @@ want to run urchin on that directory.' >&2
|
|||||||
echo >> "${urchin_tmp}"/head
|
echo >> "${urchin_tmp}"/head
|
||||||
|
|
||||||
start=$("${epoch}")
|
start=$("${epoch}")
|
||||||
|
echo "${test_seeds}" | while read seed; do
|
||||||
# 1 test file or folder to run
|
recurse "${root}" "$(fullpath "${seed}")""${TEST_SHELL}" || break
|
||||||
# 2 urchin root
|
done
|
||||||
# 3 Should we cycle shells?
|
|
||||||
# 4 TEST_SHELL
|
|
||||||
while read seed; do
|
|
||||||
recurse "$(fullpath "${seed}")" "${root}" "${cycle_shell}" \
|
|
||||||
"${TEST_SHELL}" || break
|
|
||||||
done < "${test_arg_list}"
|
|
||||||
finish=$("${epoch}")
|
finish=$("${epoch}")
|
||||||
|
|
||||||
if test $(cat "${urchin_tmp}"/log | wc -l) -eq 0; then
|
if test $(cat "${urchin_tmp}"/log | wc -l) -eq 0; then
|
||||||
echo 'No tests found' >&2
|
echo 'No tests found' >&2
|
||||||
urchin_exit 12
|
urchin_exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat "${urchin_tmp}"/head
|
cat "${urchin_tmp}"/head
|
||||||
|
Loading…
Reference in New Issue
Block a user