Skip to content
Snippets Groups Projects
Verified Commit fc07d1f4 authored by Tadej Novak's avatar Tadej Novak
Browse files

Fix EventBookkeeperTools tests in AthAnalysis

parent fcbdffaa
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,10 @@ if( NOT XAOD_STANDALONE )
PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT nopost.sh )
atlas_add_test( CutFlowSvcOutputMP
SCRIPT athena EventBookkeeperTools/TestCutFlowSvcOutput.py --nprocs=2
PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT nopost.sh )
if( NOT XAOD_ANALYSIS )
atlas_add_test( CutFlowSvcOutputMP
SCRIPT athena EventBookkeeperTools/TestCutFlowSvcOutput.py --nprocs=2
PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT nopost.sh )
endif()
endif()
......@@ -15,8 +15,12 @@ def GetCurrentStreamName( msg ):
msg.info("Couldn't get input stream name from the RecFlags... trying AthFile directly.")
from PyUtils.MetaReader import read_metadata
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
input_file = svcMgr.EventSelector.InputCollections[0]
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
try:
input_file = svcMgr.EventSelector.InputCollections[0]
except AttributeError:
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
input_file = athenaCommonFlags.FilesInput()[0]
metadata = read_metadata(input_file)
metadata = metadata[input_file] # promote all keys one level up
......
......@@ -43,8 +43,11 @@ from AthenaCommon.AppMgr import theApp
import AthenaPoolCnvSvc.ReadAthenaPool # noqa: F401
# setup some configuration
from RecExConfig.RecFlags import rec
rec.mergingStreamName = 'Stream1'
try:
from RecExConfig.RecFlags import rec
rec.mergingStreamName = 'Stream1'
except ModuleNotFoundError:
pass
# setup the CutFlowSvc and corresponding tools
from EventBookkeeperTools.CutFlowHelpers import CreateCutFlowSvc
......
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