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
i4
manycore
emper-io-eval
Commits
ee7e1ded
Commit
ee7e1ded
authored
Aug 27, 2021
by
Florian Fischer
Browse files
[eval.py] fix logging initiation and silent make check
parent
af0aeef8
Pipeline
#67394
failed with stage
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
eval.py
View file @
ee7e1ded
...
...
@@ -875,9 +875,12 @@ if __name__ == '__main__':
args
=
parser
.
parse_args
()
numeric_loglevel
=
getattr
(
logging
,
args
.
log
.
upper
(),
None
)
if
not
isinstance
(
numeric_loglevel
,
int
):
raise
ValueError
(
f
'Invalid log level:
{
args
.
log
}
'
)
if
args
.
log
:
numeric_loglevel
=
getattr
(
logging
,
args
.
log
.
upper
(),
None
)
if
not
isinstance
(
numeric_loglevel
,
int
):
raise
ValueError
(
f
'Invalid log level:
{
args
.
log
}
'
)
else
:
numeric_loglevel
=
logging
.
WARNING
logging
.
basicConfig
(
level
=
numeric_loglevel
)
log
=
logging
.
getLogger
(
Path
(
__file__
).
name
)
...
...
@@ -976,7 +979,7 @@ if __name__ == '__main__':
print
(
"Building the artifact ..."
)
make_cmd
=
[
'make'
]
if
numeric_loglevel
<=
logging
.
DEBUG
:
if
numeric_loglevel
>
logging
.
DEBUG
:
make_cmd
.
append
(
'-s'
)
subprocess
.
run
(
make_cmd
,
check
=
True
,
cwd
=
ROOT_DIR
)
...
...
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