From 47d0caf21204ddbe965be022c2fe5a8fc78e34c8 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 7 Jul 2020 06:40:23 +0300 Subject: [PATCH] [add] more info --- tests/all.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/all.sh b/tests/all.sh index 5ec8af7..9e9db48 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -75,7 +75,7 @@ setupPool() { copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static" sudo service "php${PHP_VERSION}-fpm" restart - sudo systemctl status "php${PHP_VERSION}-fpm.service" + sudo systemctl -l status "php${PHP_VERSION}-fpm.service" } setupPools() { @@ -215,10 +215,14 @@ testDiscoverScriptSleep() { CHECK_OK_COUNT=$(echo "$DATA" | grep -o -F "execution time OK" | wc -l) STOP_OK_COUNT=$(echo "$DATA" | grep -o -F "stop required" | wc -l) - assertTrue "No success time checks detected" "[ $CHECK_OK_COUNT -gt 0 ]" echo "Success time checks: $CHECK_OK_COUNT" - assertTrue "No success stop checks detected" "[ $STOP_OK_COUNT -gt 0 ]" echo "Stop time checks: $STOP_OK_COUNT" + + if [[ $CHECK_OK_COUNT -lt 1 ]] || [[ $STOP_OK_COUNT -lt 1 ]];then + echo "$DATA" + fi + assertTrue "No success time checks detected" "[ $CHECK_OK_COUNT -gt 0 ]" + assertTrue "No success stop checks detected" "[ $STOP_OK_COUNT -gt 0 ]" } testDiscoverScriptDoubleRun() {