[PATCH openbmc-test-automation 05/60] added testcase for etc passwd

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Jan 12 03:49:31 AEDT 2016


From: manjunath <manjunath at localhost.localdomain>

---
 tests/test_ssh.robot | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/test_ssh.robot b/tests/test_ssh.robot
index e9dcf9e..cabcea0 100644
--- a/tests/test_ssh.robot
+++ b/tests/test_ssh.robot
@@ -50,6 +50,14 @@ File Not Found
     Should Be Equal    ${rc}    ${2}
     Should Contain    ${stderr}    No such file or directory
 
+etc passwd entry
+    [Documentation]    This testcase is for testing /etc/passwd entry
+    ${output}    ${stderr}    ${rc}=    Execute Command    grep manjunath /etc/passwd    return_stderr=True    return_rc=True
+    ${msg}=    Catenate    output:${output}    stderr:${stderr}    rc:${rc}
+    Log To Console    ${msg}
+    Should Be Equal    ${rc}    ${0}
+    Should Contain    ${output}    manjunath
+
 *** Keywords ***
 Open Connection And Log In
     Open Connection    ${HOST}
-- 
2.6.4




More information about the openbmc mailing list