Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
DNS testing tools
Remoh
Commits
ebdd15eb
Commit
ebdd15eb
authored
Sep 16, 2020
by
Alexandre
Browse files
Display error after test result
parent
844b87ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
homer.py
View file @
ebdd15eb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment