diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-10 21:00:52 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-10 21:00:52 +0300 |
commit | 1a57b41bddb07e0ee122e1fe685d7d01b329a649 (patch) | |
tree | 05da6499a919aec5d8db44b35860182332c2cd95 /include/tests_memory_processes | |
parent | f5adb68e00795218391c107bc04b24bc7711c952 (diff) |
[PROC-3602] Use ROOTDIR
Diffstat (limited to 'include/tests_memory_processes')
-rw-r--r-- | include/tests_memory_processes | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/tests_memory_processes b/include/tests_memory_processes index 71c0fc42..49fbd7c4 100644 --- a/include/tests_memory_processes +++ b/include/tests_memory_processes @@ -30,17 +30,17 @@ # Description : Query /proc/meminfo Register --test-no PROC-3602 --os Linux --weight L --network NO --category security --description "Checking /proc/meminfo for memory details" if [ ${SKIPTEST} -eq 0 ]; then - if [ -f /proc/meminfo ]; then - LogText "Result: found /proc/meminfo" - Display --indent 2 --text "- Checking /proc/meminfo" --result "${STATUS_FOUND}" --color GREEN - FIND=$(${AWKBINARY} '/^MemTotal/ { print $2, $3 }' /proc/meminfo) + if [ -f ${ROOTDIR}proc/meminfo ]; then + LogText "Result: found ${ROOTDIR}proc/meminfo" + Display --indent 2 --text "- Checking ${ROOTDIR}proc/meminfo" --result "${STATUS_FOUND}" --color GREEN + FIND=$(${AWKBINARY} '/^MemTotal/ { print $2, $3 }' ${ROOTDIR}proc/meminfo) MEMORY_SIZE=$(echo ${FIND} | ${AWKBINARY} '{ print $1 }') MEMORY_UNITS=$(echo ${FIND} | ${AWKBINARY} '{ print $2 }') LogText "Result: Found ${MEMORY_SIZE} ${MEMORY_UNITS} memory" Report "memory_size=${MEMORY_SIZE}" Report "memory_units=${MEMORY_UNITS}" else - LogText "Result: /proc/meminfo file not found on this system" + LogText "Result: ${ROOTDIR}proc/meminfo file not found on this system" fi fi # |