trying to use time
This commit is contained in:
parent
539027db59
commit
fae4c7025e
11
urchin
11
urchin
@ -347,11 +347,9 @@ report_outcome() {
|
||||
root="${1}"
|
||||
tap_format="${2}"
|
||||
log_file="${3}"
|
||||
start="${4}"
|
||||
finish="${5}"
|
||||
elapsed="${4}"
|
||||
|
||||
escaped_root="$(fullpath "${root}" | sed 's/\//\\\//g')"
|
||||
elapsed=$(($finish - $start))
|
||||
|
||||
if "${tap_format}"; then
|
||||
printf \#\
|
||||
@ -707,8 +705,8 @@ main() {
|
||||
fi
|
||||
|
||||
# -------------------- REALLY RUN -------------------- #
|
||||
start=$(date +%s)
|
||||
|
||||
elapsed=$({
|
||||
time {
|
||||
# 1 test file or folder to run
|
||||
# 2 urchin root
|
||||
# 3 Should we cycle shells?
|
||||
@ -717,7 +715,8 @@ main() {
|
||||
recurse "$(fullpath "${seed}")" "${root}" "${cycle_shell}" \
|
||||
"${TEST_SHELL}" || break
|
||||
done < "${test_arg_list}"
|
||||
finish=$(date +%s)
|
||||
}
|
||||
} 3>&1 1>&2 2>&3 3>& | grep ^real | cut -f 2)
|
||||
|
||||
if test $(cat "${urchin_tmp}"/log | wc -l) -eq 0; then
|
||||
echo 'No tests found' >&2
|
||||
|
Loading…
Reference in New Issue
Block a user