Skip to content
Snippets Groups Projects
Commit 09ba16fa authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Allow the host name in the login prompt to be a FQDN.

parent 8d85172f
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ def check_hydra(hydra, hostname): ...@@ -59,7 +59,7 @@ def check_hydra(hydra, hostname):
x = pcl_expect.Controller() x = pcl_expect.Controller()
while x.loop(): while x.loop():
if x.re(t, "%s .*login: " % hostname): if x.re(t, "%s[a-z.]* .*login: " % hostname):
ok(repr(t.consumed.strip())) ok(repr(t.consumed.strip()))
elif x.timeout(): elif x.timeout():
critical("timeout while waiting for login prompt") critical("timeout while waiting for login prompt")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment