mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-01 13:49:03 +03:00
Add a simple test case to check the basic usage. Call 'login' and try wrong user/password, expecting the 'Login incorrect' message. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
9 lines
154 B
Python
9 lines
154 B
Python
import pexpect
|
|
|
|
p = pexpect.spawn(["login"])
|
|
p.expect("login:")
|
|
p.sendline("wrong")
|
|
p.expect("Password:")
|
|
p.sendline("wrong")
|
|
p.expect("Login incorrect")
|