epoch
This commit is contained in:
parent
969340bfd6
commit
adf8dc3562
12
urchin
12
urchin
|
@ -137,9 +137,9 @@ else
|
||||||
urchin_exit 1
|
urchin_exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if epoch_date 2>&1 /dev/null; then
|
if epoch_date 2>&1 > /dev/null; then
|
||||||
epoch=epoch_date
|
epoch=epoch_date
|
||||||
elif epoch_pax 2>&1 /dev/null; then
|
elif epoch_pax 2>&1 > /dev/null; then
|
||||||
epoch=epoch_pax
|
epoch=epoch_pax
|
||||||
else
|
else
|
||||||
echo I could not find a seconds counter. >&2
|
echo I could not find a seconds counter. >&2
|
||||||
|
@ -284,7 +284,7 @@ recurse() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run the test
|
# Run the test
|
||||||
start=$(epoch)
|
start=$("${epoch}")
|
||||||
set +e
|
set +e
|
||||||
{
|
{
|
||||||
if "${cycle_shell}"; then
|
if "${cycle_shell}"; then
|
||||||
|
@ -306,7 +306,7 @@ recurse() {
|
||||||
} > "$(stdout_file "${potential_test}" "${the_test_shell}")" 2>&1
|
} > "$(stdout_file "${potential_test}" "${the_test_shell}")" 2>&1
|
||||||
exit_code="${?}"
|
exit_code="${?}"
|
||||||
set -e
|
set -e
|
||||||
finish=$(epoch)
|
finish=$("${epoch}")
|
||||||
|
|
||||||
if test -f teardown; then
|
if test -f teardown; then
|
||||||
. ./teardown
|
. ./teardown
|
||||||
|
@ -709,7 +709,7 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# -------------------- REALLY RUN -------------------- #
|
# -------------------- REALLY RUN -------------------- #
|
||||||
start=$(epoch)
|
start=$("${epoch}")
|
||||||
|
|
||||||
# 1 test file or folder to run
|
# 1 test file or folder to run
|
||||||
# 2 urchin root
|
# 2 urchin root
|
||||||
|
@ -719,7 +719,7 @@ main() {
|
||||||
recurse "$(fullpath "${seed}")" "${root}" "${cycle_shell}" \
|
recurse "$(fullpath "${seed}")" "${root}" "${cycle_shell}" \
|
||||||
"${TEST_SHELL}" || break
|
"${TEST_SHELL}" || break
|
||||||
done < "${test_arg_list}"
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user