File system read-only access test

Resolves  openbmc/openbmc-test-automation#936

Change-Id: I9e87ea66f551a511ff1a39fc3b5caa52ca67dd6e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_general_bmc_system.robot b/tests/test_general_bmc_system.robot
index 7e3a168..890bc89 100755
--- a/tests/test_general_bmc_system.robot
+++ b/tests/test_general_bmc_system.robot
@@ -18,6 +18,14 @@
 
 *** Test Cases ***
 
+File System Read Only
+    [Documentation]  Verify that file system is read-only.
+    [Tags]  File_System_Read_Only
+    ${output}  ${stderr}  ${rc}=
+    ...  BMC Execute Command  touch cold-play.txt  ignore_err=${1}
+    Should Contain  ${stderr}  Read-only file system
+
+
 Verify Boot Count After BMC Reboot
     [Documentation]  Verify boot count increments on BMC reboot.
     [Tags]  Verify_Boot_Count_After_BMC_Reboot