Delete all non-root IPMI user in test teardown

Change-Id: I1d87f97f336c7dcdd7b375487cb3e1d094d02a9a
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/ipmi/test_ipmi_user.robot b/ipmi/test_ipmi_user.robot
index 0d145a9..04d260a 100644
--- a/ipmi/test_ipmi_user.robot
+++ b/ipmi/test_ipmi_user.robot
@@ -5,7 +5,7 @@
 Resource            ../lib/openbmc_ffdc.robot
 Library             ../lib/ipmi_utils.py
 
-Test Teardown       FFDC On Test Case Fail
+Test Teardown       Test Teardown Execution
 
 
 *** Variables ***
@@ -141,3 +141,19 @@
     ${user_info}=  Get User Info  ${userid}
     Should Be Equal  ${user_info['user_name']}  ${username}
 
+
+Delete All Non Root IPMI User
+    [Documentation]  Delete all non-root IPMI user.
+
+    :FOR  ${userid}  IN RANGE  2  16
+    \  ${user_info}=  Get User Info  ${userid}
+    \  Run Keyword If  "${user_info['user_name']}" != ""
+    ...  Run IPMI Standard Command  user set name ${userid} ""
+
+
+Test Teardown Execution
+    [Documentation]  Do the test teardown execution.
+
+    FFDC On Test Case Fail
+    Delete All Non Root IPMI User
+