diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2017-09-16 15:08:38 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-09-16 15:08:38 +0300 |
commit | 11f81345ee734d89f1dbdc8524c7023f8ee5bdea (patch) | |
tree | 5388a8ad64558571c44583fc0d222efbee7a7e8e /include/tests_webservers | |
parent | 499f7d5015b3d31a8ad3b0e555e72916a846c2cb (diff) |
Code enhancement
Diffstat (limited to 'include/tests_webservers')
-rw-r--r-- | include/tests_webservers | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tests_webservers b/include/tests_webservers index cb12c2ee..2307180b 100644 --- a/include/tests_webservers +++ b/include/tests_webservers @@ -312,8 +312,7 @@ Register --test-no HTTP-6702 --weight L --network NO --category security --description "Check nginx process" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: searching running nginx process" - FIND=$(${PSBINARY} ax | ${GREPBINARY} "/nginx" | ${GREPBINARY} "master" | ${GREPBINARY} -v "grep") - if HasData "${FIND}"; then + if IsRunning "nginx"; then LogText "Result: found running nginx process(es)" Display --indent 2 --text "- Checking nginx" --result "${STATUS_FOUND}" --color GREEN NGINX_RUNNING=1 |