mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Added output of runtime
This commit is contained in:
parent
dd3b651767
commit
a4f9493ce7
1 changed files with 8 additions and 1 deletions
|
@ -9,9 +9,16 @@ done
|
||||||
|
|
||||||
date >> all.log
|
date >> all.log
|
||||||
|
|
||||||
|
START=`head -1 all.log`
|
||||||
|
STARTEPOCH=`date "+%s" -d "${START}"`
|
||||||
|
END=`tail -1 all.log`
|
||||||
|
ENDEPOCH=`date "+%s" -d "${END}"`
|
||||||
|
RUNTIME=$(($ENDEPOCH-$STARTEPOCH))
|
||||||
|
|
||||||
echo -n 'Pass: '
|
echo -n 'Pass: '
|
||||||
grep ^ok all.log | wc -l
|
grep ^ok all.log | wc -l
|
||||||
|
|
||||||
echo -n 'Fail: '
|
echo -n 'Fail: '
|
||||||
grep ^not all.log | wc -l
|
grep ^not all.log | wc -l
|
||||||
|
echo -n 'Runtime: '
|
||||||
|
echo $RUNTIME
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue