Reset pam counter as part of test setup

Change-Id: I054a5d33da13e2238108940025cc5fb00e47f15a
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index 2fc7dd8..00e19c0 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -85,7 +85,6 @@
     operator_user  TestPwd123  Operator        ${False}
     readonly_user  TestPwd123  ReadOnly        ${False}
 
-
 Verify User Creation With Invalid Role Id
     [Documentation]  Verify user creation with invalid role ID.
     [Tags]  Verify_User_Creation_With_Invalid_Role_Id
@@ -325,6 +324,11 @@
     Redfish.Post  /redfish/v1/AccountService/Accounts/  body=&{payload}
     ...  valid_status_codes=[${HTTP_CREATED}]
 
+    # Resetting pam tally count as a workaround for issue
+    # openbmc/phosphor-user-manager#4
+    ${cmd}=  Catenate  /usr/sbin/pam_tally2 -u ${username} --reset
+    Bmc Execute Command  ${cmd}
+
     Redfish.Logout
 
     # Login with created user.