We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0698a8c commit f37ed4aCopy full SHA for f37ed4a
test.sh
@@ -1,18 +1,15 @@
1
#!/usr/bin/env bash
2
versions=${1:-ALL}
3
posargs=${2:-32}
4
-set -e
5
-
6
-microtime() {
7
- python -c 'import time; print(time.time())'
8
-}
+SECONDS=0
9
10
-START=$(microtime)
+set -e
11
12
./validate.sh
13
mkdir -p test-reports
14
tox -e ${versions} -- ${posargs}
15
coverage html --directory test-reports/coverage
16
-rm -rf .coverage* Running
+rm -rf test-reports/.coverage* test-reports/Running 2> /dev/null
17
18
-echo "Time elapsed: $(echo "scale=1; ($(microtime) - $START) / 60" | bc) minutes"
+duration=$SECONDS
+echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
0 commit comments