Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
regression-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OPAL
regression-tests
Commits
6cbd3f4f
Commit
6cbd3f4f
authored
Jun 19, 2015
by
kraus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing plot production
parent
44e76078
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
RegressionTests/run/regressiontest.py
RegressionTests/run/regressiontest.py
+2
-3
RegressionTests/run/run-reg-tests.py
RegressionTests/run/run-reg-tests.py
+1
-3
RegressionTests/run/tools.py
RegressionTests/run/tools.py
+1
-1
No files found.
RegressionTests/run/regressiontest.py
View file @
6cbd3f4f
...
...
@@ -130,7 +130,7 @@ class RegressionTest:
# move plots to plot dir
d
=
datetime
.
date
.
today
()
plotdir
=
"results/"
+
d
.
isoformat
()
+
"/plots
_"
+
d
.
isoformat
()
plotdir
=
"results/"
+
d
.
isoformat
()
+
"/plots
"
subprocess
.
getoutput
(
"mkdir "
+
curd
+
"/"
+
plotdir
)
subprocess
.
getoutput
(
"cp -rf *.png "
+
curd
+
"/"
+
plotdir
)
...
...
@@ -664,5 +664,4 @@ class LossTest:
variable_list
=
{
"x"
:
1
,
"y"
:
2
,
"z"
:
3
,
"px"
:
4
,
"py"
:
5
,
"pz"
:
6
,
"track_id"
:
7
,
"turn"
:
8
,
"time"
:
9
}
mode_list
=
{
"last"
:
testLast
,
"all"
:
testAll
,
"error"
:
testError
,
"avg"
:
testMean
}
"avg"
:
testMean
}
\ No newline at end of file
RegressionTests/run/run-reg-tests.py
View file @
6cbd3f4f
...
...
@@ -190,7 +190,7 @@ def main(argv):
brokentests
=
rep
.
NrBroken
()
webfilename
=
"results_%s_%s_%s.xml"
%
(
d
.
day
,
d
.
month
,
d
.
year
)
shutil
.
copy
(
"results.xml"
,
www_folder
+
"/"
+
webfilename
)
subprocess
.
getoutput
(
"cp -rf
plots_"
+
d
.
isoformat
()
+
" "
+
www_folder
+
"/"
)
subprocess
.
getoutput
(
"cp -rf
results/"
+
d
.
isoformat
()
+
"/plots "
+
www_folder
+
"/plots_"
+
d
.
isoformat
()
)
indexhtml
=
open
(
www_folder
+
"/index.html"
).
readlines
()
for
line
in
range
(
len
(
indexhtml
)):
if
"insert here"
in
indexhtml
[
line
]:
...
...
@@ -217,8 +217,6 @@ def main(argv):
subprocess
.
getoutput
(
"cp -rf "
+
"results.xml "
+
resultdir
)
if
runAsUser
:
subprocess
.
getoutput
(
"rm -rf "
+
regdir
+
"/plots_"
+
d
.
isoformat
())
bailout
(
runAsUser
)
#call main
...
...
RegressionTests/run/tools.py
View file @
6cbd3f4f
...
...
@@ -192,4 +192,4 @@ def genplot(simname, var):
else
:
print
(
"Error in genplot: Cannot find stat variable!"
)
return
"plots_"
+
d
.
isoformat
()
+
"/"
+
filename
+
".png"
return
"plots_"
+
d
.
isoformat
()
+
"/"
+
filename
+
".png"
\ No newline at end of file
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