Skip to content
Snippets Groups Projects
Commit 8d1b7c4d authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Adapt XMLSummaryKernel tests to change output file creation policy

parent e008ce58
No related branches found
No related tags found
1 merge request!4023Adapt XMLSummaryKernel tests to change output file creation policy
Pipeline #5301771 passed
......@@ -62,6 +62,21 @@ for l in refblock:
result['xmlsummarykernel.readerror']=result.Quote(restr)
doBreak=True
########################################
#allow GUID of file to change
########################################
elif 'RootDst-ReadError.root' in l:
pass
#do something special
restr=l[:l.find('"')+1]+'.*-.*-.*-.*-.*'+l[l.find('"',l.find('"')+1):]
for r in sumblock:
if 'RootDst' in r:
if not re.search(restr,r):
causes.append('XMLsummary output file error')
result['xmlsummarykernel.writedst']=result.Quote(restr)
if not re.search(restr,stdout):
causes.append('XMLsummary output file error')
result['xmlsummarykernel.writedst']=result.Quote(restr)
########################################
#do not allow any other omissions
########################################
else:
......
......@@ -21,7 +21,7 @@
#######################################################
-->
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="exit_code"><integer>2</integer></argument>
<argument name="exit_code"><integer>11</integer></argument>
<argument name="program"><text>gaudirun.py</text></argument>
<argument name="args"><set><text>../../options/test-XMLSummary-WriteError.py</text></set></argument>
<argument name="validator"><text>
......
......@@ -4,13 +4,13 @@
<success>False</success>
<step>finalize</step>
<usage>
<stat useOf="MemoryMaximum" unit="KB">1252852.0</stat>
<stat useOf="MemoryMaximum" unit="KB">957464.0</stat>
</usage>
<input>
<file GUID="" name="PFN:YouCannotOpenMe.dst" status="fail">0</file>
</input>
<output>
<file GUID="" name="PFN:RootDst-ReadError.root" status="full">0</file>
<file GUID="81D0CF68-C732-11ED-8B0E-3CECEF0DE804" name="PFN:RootDst-ReadError.root" status="full">0</file>
</output>
<counters>
<counter name="CounterSummarySvc/handled">5</counter>
......
......@@ -4,18 +4,17 @@
<success>False</success>
<step>finalize</step>
<usage>
<stat useOf="MemoryMaximum" unit="KB">1253580.0</stat>
<stat useOf="MemoryMaximum" unit="KB">952652.0</stat>
</usage>
<input>
<file GUID="28B6CE68-6E10-E211-87CF-003048C5F645" name="PFN:root://eoslhcb.cern.ch//eos/lhcb/cern-swtest/lhcb/LHCb/Collision12/FULL.DST/00020330/0004/00020330_00042960_1.full.dst" status="part">1</file>
<file GUID="" name="PFN:root://eoslhcb.cern.ch//eos/lhcb/cern-swtest/lhcb/LHCb/Collision12/FULL.DST/00020330/0004/00020330_00042960_1.full.dst" status="part">0</file>
<file GUID="" name="PFN:/SomeFileYouCannotWriteTo.root" status="fail">0</file>
</input>
<output>
<file GUID="" name="PFN:/SomeFileYouCannotWriteTo.root" status="fail">0</file>
</output>
<counters>
<counter name="CounterSummarySvc/handled">7</counter>
<statEntity format="Flag Entries Flag2" name="TestCounter/efficiency" min="0.0" max="1.0">1.0 1.0 1.0</statEntity>
<counter name="CounterSummarySvc/handled">4</counter>
</counters>
<lumiCounters />
</summary>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment