aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-04-01 13:24:08 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-04-01 13:24:08 +0200
commit6dbb815c0350f454fbd79ed6ebcc829cbc524e5b (patch)
tree98920eba1943cec6df547f311d018e363ea6754a
parent9fde833d2983877ad1f8b9e5cce0a65992241f2d (diff)
Show testing duration when finished
-rw-r--r--lib/actions/test.bash9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/actions/test.bash b/lib/actions/test.bash
index 820a689..5b1fa0e 100644
--- a/lib/actions/test.bash
+++ b/lib/actions/test.bash
@@ -2,8 +2,9 @@
action() {
local OPTIND
- local raku
local failures=0
+ local init
+ local raku
while getopts ":p:" opt
do
@@ -31,6 +32,10 @@ action() {
set -- spectest modules
fi
+ # Take note of the current time, so we can show how long it took later
+ # on
+ init="$(date +%s)"
+
# Run each test target
for target in "$@"
do
@@ -45,6 +50,8 @@ action() {
failures=$(( failures + 1 ))
done
+ info "Testing took $(pp_duration "$init")"
+
if (( failures > 0 ))
then
return 4