Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Charles Burton
Gaudi
Commits
a4a93022
Commit
a4a93022
authored
Aug 29, 2014
by
Marco Clemencic
Browse files
ignore test wrappers in the HTML report (if successful)
parent
0a04c660
Changes
2
Hide whitespace changes
Inline
Side-by-side
GaudiPolicy/doc/release.notes
View file @
a4a93022
...
...
@@ -2,6 +2,10 @@ package GaudiPolicy
package
manager
:
Marco
Clemencic
Commit
Id
:
$
Format
:%
H
$
! 2014-08-29 - Marco Clemencic
-
Modified
CTestXML2HTML
to
ignore
tests
with
label
'test-wrapper'
,
if
they
are
successful
.
! 2014-08-29 - Marco Clemencic
-
Made
run_qmtest
and
CTestXML2HTML
more
resilient
to
configuration
mistakes
.
...
...
GaudiPolicy/scripts/CTestXML2HTML
View file @
a4a93022
...
...
@@ -539,7 +539,7 @@ def main():
if
not
tests
:
# no tests in this "site", let's ignore it
continue
#create a directory containing the html file for each site
outputTemp
=
output
#os.path.join(output,os.path.split(fileName)[1][:-8]+str(site.get("BuildStamp")))
if
not
os
.
path
.
isdir
(
outputTemp
)
:
...
...
@@ -572,7 +572,8 @@ def main():
shutil
.
copy
(
src
,
dst
)
# process each test case
for
Test
in
Testing
.
findall
(
"Test"
)
:
for
Test
in
tests
:
labels
=
[
l
.
text
for
l
in
Test
.
findall
(
'Labels/Label'
)]
Results
=
Test
.
find
(
"Results"
)
...
...
@@ -597,6 +598,10 @@ def main():
summary
[
"outcome"
]
=
cleanSpace
(
cleanWebChar
(
Test
.
get
(
"Status"
)))
## TODO : Complete with all other possible ctest outcomes
if
'test-wrapper'
in
labels
and
summary
[
"outcome"
]
==
'PASS'
:
# we should not report the results of test wrappers (like
# QMTest) if they are successful
continue
organizer_all
.
classify
(
Test
)
if
summary
[
"outcome"
]
!=
"PASS"
:
...
...
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