Automation fix for save area test case

Changes:
   - when same config file gets updated then file updated is the
     expected message, same is aded in keyword.
   - Passing expected message also in this keyword,
     "Upload Partition File With Some Known Contents"

Change-Id: I3d99ed57696e35477991f0475f2b53643413c5fe
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/openpower/ext_interfaces/test_savearea_management.robot b/openpower/ext_interfaces/test_savearea_management.robot
index 6ba2355..630c541 100644
--- a/openpower/ext_interfaces/test_savearea_management.robot
+++ b/openpower/ext_interfaces/test_savearea_management.robot
@@ -17,6 +17,7 @@
 
 ${MAX_SIZE_MSG}           File size exceeds maximum allowed size[500KB]
 ${UPLOADED_MSG}           File Created
+${FILE_UPDATED}           File Updated
 ${FORBIDDEN_MSG}          Forbidden
 ${FILE_CREATE_ERROR_MSG}  Error while creating the file
 
@@ -89,11 +90,13 @@
     Set Test Variable  ${content1}  Sample Content to test partition file upload
     Set Test Variable  ${content2}  Sample Content to test partition file update
 
-    Upload Partition File With Some Known Contents  ${file_name}  ${partition_name}  ${content1}
+    Upload Partition File With Some Known Contents
+    ...  ${file_name}  ${partition_name}  ${content1}  ${UPLOADED_MSG}
     Read Partition And Verify Content  ${partition_name}  ${content1}
 
     # Upload the same partition with modified contents to verify update partition feature.
-    Upload Partition File With Some Known Contents  ${file_name}  ${partition_name}  ${content2}
+    Upload Partition File With Some Known Contents
+    ...  ${file_name}  ${partition_name}  ${content2}  ${FILE_UPDATED}
     Read Partition And Verify Content  ${partition_name}  ${content2}
 
 
@@ -131,10 +134,11 @@
 
     # Upload same partition with different content to test partition update after BMC reboot.
     Upload Partition File With Some Known Contents
-    ...  ${file_name}_1  ${partition_name}_1  ${content}_${file_name}_2
+    ...  ${file_name}_1  ${partition_name}_1  ${content}_${file_name}_2  ${FILE_UPDATED}
 
     # Upload different partition.
-    Upload Partition File With Some Known Contents  ${file_name}  ${partition_name}  ${content}
+    Upload Partition File With Some Known Contents
+    ...  ${file_name}  ${partition_name}  ${content}  ${UPLOADED_MSG}
 
 
 Verify One Thousand Partitions File Upload
@@ -386,7 +390,7 @@
 
 Upload Partition File With Some Known Contents
     [Documentation]  Upload partition file with some known contents.
-    [Arguments]  ${file_name}  ${partition_name}  ${content}
+    [Arguments]  ${file_name}  ${partition_name}  ${content}  ${expected_msg}=${UPLOADED_MSG}
 
     # Description of argument(s):
     # file_name           Name of the partition file to be uploaded.
@@ -397,7 +401,7 @@
     OperatingSystem.File Should Exist  ${file_name}
 
     Upload File To Create Partition Then Delete Partition  ${file_name}  1  ${partition_name}
-    ...  delete_partition=${False}
+    ...  expected_msg=${expected_msg}  delete_partition=${False}
 
 
 Suite Setup Execution