whois-test: handle local hostname = "localhost.localdomain"
Use the pattern "localhost*" for valid local hostnames.
This commit is contained in:
parent
e4a06844a3
commit
9e48f3f8f8
|
@ -17,31 +17,31 @@ expect {
|
||||||
send "whois nick\r"
|
send "whois nick\r"
|
||||||
expect {
|
expect {
|
||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"311 nick nick ~user localhost \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
|
||||||
send "whois *\r"
|
send "whois *\r"
|
||||||
expect {
|
expect {
|
||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"311 nick nick ~user localhost \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
|
||||||
send "whois n*\r"
|
send "whois n*\r"
|
||||||
expect {
|
expect {
|
||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"311 nick nick ~user localhost \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
|
||||||
send "whois ?ick\r"
|
send "whois ?ick\r"
|
||||||
expect {
|
expect {
|
||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"311 nick nick ~user localhost \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
|
||||||
send "whois ????,n?*k\r"
|
send "whois ????,n?*k\r"
|
||||||
expect {
|
expect {
|
||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"311 nick nick ~user localhost \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
|
||||||
send "quit\r"
|
send "quit\r"
|
||||||
|
|
Loading…
Reference in New Issue