diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 12:32:48 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 12:32:48 +0300 |
commit | 17137408d29d004e7ec1512ab7e6b7d30ff28ebe (patch) | |
tree | 85991b6df7fa8f8d49845b48c43038b049b68121 /include/tests_networking | |
parent | 8321b986891eae1f928434ea9ac0003ae743ab67 (diff) |
Use IsRunning exit code instead of variable
Diffstat (limited to 'include/tests_networking')
-rw-r--r-- | include/tests_networking | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tests_networking b/include/tests_networking index 82ec452a..aa167873 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -596,8 +596,7 @@ # Description : Checking for DHCP client Register --test-no NETW-3030 --weight L --network NO --category security --description "Checking DHCP client status" if [ ${SKIPTEST} -eq 0 ]; then - IsRunning dhclient || IsRunning dhcpcd || IsRunning udhcpc - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "dhclient" || IsRunning "dhcpcd" || IsRunning "udhcpc"; then Display --indent 2 --text "- Checking status DHCP client" --result "${STATUS_RUNNING}" --color WHITE DHCP_CLIENT_RUNNING=1 else |