Commit 2be57b81 authored by Alexandre's avatar Alexandre
Browse files

Print OK with --pipelining

The OK/KO output was reserved for the --check option. When using
--pipelining it could be nice to say if it succeed or fail (at
this point success only means that all the queries got an answer
in the given time window)
parent 7859e494
......@@ -1311,6 +1311,7 @@ for connectTo in ip_set:
# or to define a relation such as
# f(tests) = MAX_DURATION
print("Elapsed time too long, %i requests never got a reply" % (tests-done))
ok = False
id = conn.read_result(conn, conn.pending)
if id is None: # Probably a timeout
......@@ -1345,7 +1346,7 @@ for connectTo in ip_set:
if ok:
if check:
if check or pipelining:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment