Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sedrubal
Masterarbeit
evaluation_tools
Commits
3c4325fd
Verified
Commit
3c4325fd
authored
Sep 13, 2021
by
Sebastian Endres
Browse files
Warn if log_dir in result.json does not exist
parent
ef196458
Changes
1
Show whitespace changes
Inline
Side-by-side
result_parser.py
View file @
3c4325fd
"""Parse quic-interop-runner result.json files."""
import
json
import
logging
import
re
from
abc
import
ABC
,
abstractmethod
from
dataclasses
import
dataclass
...
...
@@ -300,10 +301,16 @@ class Result:
def
log_dir
(
self
)
->
Path
:
"""The path to the detailed logs."""
log_dir
=
Path
(
self
.
raw_data
[
"log_dir"
])
if
log_dir
.
is_absolute
():
if
not
log_dir
.
is_absolute
():
log_dir
=
self
.
file_path
.
parent
/
log_dir
if
not
log_dir
.
is_dir
():
logging
.
warning
(
f
"The log dir
{
log_dir
}
given in
{
self
.
file_path
}
does not exist"
)
return
log_dir
else
:
return
self
.
file_path
.
parent
/
log_dir
@
log_dir
.
setter
def
log_dir
(
self
,
value
:
Path
):
...
...
Write
Preview
Supports
Markdown
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