Commit ebdd15eb authored by Alexandre's avatar Alexandre
Browse files

Display error after test result

parent 844b87ec
......@@ -257,16 +257,15 @@ def do_check(connection, requests, opts):
try:
connection.send_and_receive(bundle)
except (homer.ConnectionException, homer.DOHException) as e:
print(e, file=sys.stderr)
ok = False
print_check_result(test_name, ok, verbose=connection.verbose)
print(e, file=sys.stderr)
continue
if level >= opts.mandatory_level:
ok = request.check_response(connection.debug)
print_check_result(test_name, ok, verbose=connection.verbose)
print_result(connection, request, prefix=test_name, display_err=not ok)
if connection.verbose:
print_check_result(test_name, ok, verbose=connection.verbose)
if not ok:
break
return ok
......@@ -331,8 +330,8 @@ def check_truncated_query(connection, opts, level=homer.mandatory_levels["niceto
# input data)
ok = (request.rcode >= 400 and request.rcode < 500)
print_result(connection, request, prefix=test_name, display_err=not ok)
print_check_result(test_name, ok, verbose=connection.verbose)
print_result(connection, request, prefix=test_name, display_err=not ok)
return ok
......
Markdown is supported
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