From dc8ae7f6662fbf6164bfeeda23ac5f977653471f Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 16 Feb 2020 18:48:55 +0100 Subject: [PATCH] Show duration of extension tests --- scripts/ci-test-extensions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ci-test-extensions b/scripts/ci-test-extensions index 7f302cf..5558a1e 100755 --- a/scripts/ci-test-extensions +++ b/scripts/ci-test-extensions @@ -237,9 +237,12 @@ testExtensionFor() { fi printf ' - Docker image: %s\n' "$testExtensionFor_Image" testExtensionFor_out="$(mktemp)" + testExtensionFor_start=$(date +%s) if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --workdir /app "$testExtensionFor_Image" sh -c "./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then + testExtensionFor_end=$(date +%s) + testExtensionFor_delta=$(expr $testExtensionFor_end - $testExtensionFor_start) rm -rf "$testExtensionFor_out" - printf ' - Passed\n' + printf ' - Passed in %s seconds\n' $testExtensionFor_delta return 0 fi printf ' - FAILED!\n' >&2