Automation fix for Kernel changes related to initramfs
Resolves openbmc/openbmc-test-automation#349
Change-Id: Ifc24ac7af3a9be5bada42e0b5b3baaf939c9e924
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 96ca03d..e616a7d 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -24,9 +24,9 @@
${bmc_mem_total_cmd}= free | tr -s ' ' | sed '/^Mem/!d' | cut -d" " -f2
${bmc_cpu_usage_cmd}= top -n 1 | grep CPU: | cut -c 7-9
${HOST_SETTING} ${SETTINGS_URI}host0
-# /dev/mtdblock5 filesystem should be 100% full always
+# /run/initramfs/ro associate filesystem should be 100% full always
${bmc_file_system_usage_cmd}=
-... df -h | grep -v /dev/mtdblock5 | cut -c 52-54 | grep 100 | wc -l
+... df -h | grep -v /run/initramfs/ro | cut -c 52-54 | grep 100 | wc -l
${BOOT_TIME} ${0}
${BOOT_COUNT} ${0}
@@ -511,7 +511,7 @@
BMC File System Usage Check
[Documentation] Check the file system space. None should be 100% full
- ... except /dev/mtdblock5
+ ... except /run/initramfs/ro
${bmc_fs_usage_output} ${stderr}= Execute Command
... ${bmc_file_system_usage_cmd} return_stderr=True
Should Be Empty ${stderr}