Skip to content
Snippets Groups Projects
Commit 2ce0ff71 authored by Tomasz Bold's avatar Tomasz Bold
Browse files

fixed BSCnvSvc vonfig & added test

Former-commit-id: 45675d18
parent f73ff63e
No related branches found
No related tags found
No related merge requests found
...@@ -122,6 +122,9 @@ _add_test( AtlCopyBSEvent5_test ...@@ -122,6 +122,9 @@ _add_test( AtlCopyBSEvent5_test
# "AtlCopyBSEvent -e all -o empty.data /afs/cern.ch/atlas/maxidisk/d108/cranshaw/nightlies/RAW.01524408._005549.data.1" # "AtlCopyBSEvent -e all -o empty.data /afs/cern.ch/atlas/maxidisk/d108/cranshaw/nightlies/RAW.01524408._005549.data.1"
# DEPENDS ByteStreamCnvSvc_AtlFindBSEvent4_test_ctest ) # DEPENDS ByteStreamCnvSvc_AtlFindBSEvent4_test_ctest )
atlas_add_test( ByteStreamConfigTest SCRIPT python -m ByteStreamCnvSvc.ByteStreamConfig POST_EXEC_SCRIPT nopost.sh )
# Install files from the package: # Install files from the package:
atlas_install_python_modules( python/*.py ) atlas_install_python_modules( python/*.py )
atlas_install_joboptions( share/*.py ) atlas_install_joboptions( share/*.py )
......
...@@ -46,10 +46,12 @@ def TrigBSReadCfg( inputFlags ): ...@@ -46,10 +46,12 @@ def TrigBSReadCfg( inputFlags ):
from IOVDbMetaDataTools.IOVDbMetaDataToolsConf import IOVDbMetaDataTool from IOVDbMetaDataTools.IOVDbMetaDataToolsConf import IOVDbMetaDataTool
iovMetaDataTool = IOVDbMetaDataTool() iovMetaDataTool = IOVDbMetaDataTool()
acc.addPublicTool( iovMetaDataTool )
from ByteStreamCnvSvc.ByteStreamCnvSvcConf import ByteStreamMetadataTool from ByteStreamCnvSvc.ByteStreamCnvSvcConf import ByteStreamMetadataTool
bsMetaDataTool = ByteStreamMetadataTool() bsMetaDataTool = ByteStreamMetadataTool()
acc.addPublicTool( bsMetaDataTool )
from StoreGate.StoreGateConf import ProxyProviderSvc, StoreGateSvc from StoreGate.StoreGateConf import ProxyProviderSvc, StoreGateSvc
metaDataStore = StoreGateSvc("MetaDataStore") metaDataStore = StoreGateSvc("MetaDataStore")
acc.addService( metaDataStore ) acc.addService( metaDataStore )
...@@ -111,10 +113,9 @@ def TrigBSReadCfg( inputFlags ): ...@@ -111,10 +113,9 @@ def TrigBSReadCfg( inputFlags ):
return acc return acc
if __name__ == "__main__": if __name__ == "__main__":
from AthenaConfiguration.ConfigFlags import ConfigFlagContainer from AthenaConfiguration.AllConfigFlags import ConfigFlags
flags = ConfigFlagContainer() ConfigFlags.Input.Files = ["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigP1Test/data17_13TeV.00327265.physics_EnhancedBias.merge.RAW._lb0100._SFO-1._0001.1"]
flags.Input.Files = ["dummy.data"]
acc = TrigBSReadCfg( flags ) acc = TrigBSReadCfg( ConfigFlags )
acc.store( file( "test.pkl", "w" ) ) acc.store( file( "test.pkl", "w" ) )
print "All OK" print "All OK"
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