assorted tap stuff
This commit is contained in:
parent
40979f6e18
commit
9d10e12633
7
urchin
7
urchin
@ -82,7 +82,8 @@ recurse() {
|
|||||||
else
|
else
|
||||||
result=not\ ok
|
result=not\ ok
|
||||||
fi
|
fi
|
||||||
echo "${result} - ${potential_test}"
|
n=$(grep -ce '^\(?:not \)\?ok' "$logfile")
|
||||||
|
echo "${result} $((n + 1)) - ${potential_test}" | tee --append "$logfile"
|
||||||
else
|
else
|
||||||
indent $indent_level
|
indent $indent_level
|
||||||
if [ $exit_code -eq 0 ]
|
if [ $exit_code -eq 0 ]
|
||||||
@ -163,8 +164,10 @@ urchin_go() {
|
|||||||
|
|
||||||
finish=$(date +%s)
|
finish=$(date +%s)
|
||||||
elapsed=$(($finish - $start))
|
elapsed=$(($finish - $start))
|
||||||
|
|
||||||
|
|
||||||
if $tap_format; then
|
if $tap_format; then
|
||||||
sleep 0s
|
echo "# Took $elapsed $(plural second $elapsed)."
|
||||||
else
|
else
|
||||||
echo "Done, took $elapsed $(plural second $elapsed)."
|
echo "Done, took $elapsed $(plural second $elapsed)."
|
||||||
set -- $(grep -e 'passed$' "$logfile"|wc -l) $(grep -e 'failed$' "$logfile"|wc -l)
|
set -- $(grep -e 'passed$' "$logfile"|wc -l) $(grep -e 'failed$' "$logfile"|wc -l)
|
||||||
|
Loading…
Reference in New Issue
Block a user