Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
1bda997a
Commit
1bda997a
authored
6 years ago
by
Mikhail Karnevskiy
Browse files
Options
Downloads
Patches
Plain Diff
Move Test Results from section to subsection.
parent
f273618d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!39
Describe common place for test data
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/conf.py
+6
-6
6 additions, 6 deletions
docs/source/conf.py
with
6 additions
and
6 deletions
docs/source/conf.py
+
6
−
6
View file @
1bda997a
...
...
@@ -438,7 +438,7 @@ with open("available_notebooks.rst", "w") as f:
f
.
write
(
"
\n\n
"
)
# add test results
test_art
i
fact_dir
=
os
.
path
.
realpath
(
"
../../tests/art
i
facts
"
)
test_art
e
fact_dir
=
os
.
path
.
realpath
(
"
../../tests/art
e
facts
"
)
from
datetime
import
datetime
from
dateutil.parser
import
parse
...
...
@@ -559,7 +559,7 @@ def sorted_dir(folder):
header
=
"""
Test Results
************
++++++++++++
Results are organized by git commit, and sorted descending by date.
...
...
@@ -575,7 +575,7 @@ if not os.path.exists("./test_rsts"):
with
open
(
"
test_results.rst
"
,
"
w
"
)
as
f
:
f
.
write
(
header
)
for
commit
,
modtime
in
sorted_dir
(
test_art
i
fact_dir
):
for
commit
,
modtime
in
sorted_dir
(
test_art
e
fact_dir
):
with
open
(
"
./test_rsts/{}.rst
"
.
format
(
commit
),
"
w
"
)
as
fr
:
rst
=
[
"
.. include:: roles.rst
"
]
rst
+=
[
""
]
...
...
@@ -585,7 +585,7 @@ with open("test_results.rst", "w") as f:
fr
.
write
(
"
\n
"
.
join
(
rst
))
# copy reports
pdfs
=
glob
.
glob
(
"
{}/{}/*/*.pdf
"
.
format
(
test_art
i
fact_dir
,
commit
))
pdfs
=
glob
.
glob
(
"
{}/{}/*/*.pdf
"
.
format
(
test_art
e
fact_dir
,
commit
))
if
not
os
.
path
.
exists
(
"
./_static/reports/{}
"
.
format
(
commit
)):
os
.
makedirs
(
"
./_static/reports/{}
"
.
format
(
commit
))
reports
=
{}
...
...
@@ -598,7 +598,7 @@ with open("test_results.rst", "w") as f:
rlist
.
append
((
rname
,
"
../_static/reports/{}
"
.
format
(
ppath
)))
reports
[
rloc
]
=
rlist
xmls
=
glob
.
glob
(
"
{}/{}/*/TEST*.xml
"
.
format
(
test_art
i
fact_dir
,
commit
))
xmls
=
glob
.
glob
(
"
{}/{}/*/TEST*.xml
"
.
format
(
test_art
e
fact_dir
,
commit
))
for
xml
in
xmls
:
rloc
=
xml
.
split
(
"
/
"
)[
-
2
]
with
open
(
xml
,
"
r
"
)
as
xf
:
...
...
@@ -608,4 +608,4 @@ with open("test_results.rst", "w") as f:
f
.
write
(
"
test_rsts/{}
\n
"
.
format
(
commit
))
def
setup
(
app
):
app
.
add_stylesheet
(
'
css/test_decorators.css
'
)
\ No newline at end of file
app
.
add_stylesheet
(
'
css/test_decorators.css
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment