Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
dd0b1df8
Commit
dd0b1df8
authored
6 years ago
by
Stewart Martin-Haugh
Browse files
Options
Downloads
Patches
Plain Diff
New unit test for IOVDbSvc configuration
parent
0c83be5a
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Database/IOVDbSvc/CMakeLists.txt
+2
-0
2 additions, 0 deletions
Database/IOVDbSvc/CMakeLists.txt
Database/IOVDbSvc/python/IOVDbSvcConfig.py
+14
-0
14 additions, 0 deletions
Database/IOVDbSvc/python/IOVDbSvcConfig.py
with
16 additions
and
0 deletions
Database/IOVDbSvc/CMakeLists.txt
+
2
−
0
View file @
dd0b1df8
...
...
@@ -59,3 +59,5 @@ atlas_add_test( IOVDbSvc_test
PROPERTIES TIMEOUT 300
EXTRA_PATTERNS
"^HistogramPersis.* INFO|^IOVSvc +DEBUG|^IOVSvcTool +DEBUG"
ENVIRONMENT
"JOBOPTSEARCHPATH=
${
CMAKE_CURRENT_SOURCE_DIR
}
/share"
)
atlas_add_test
(
IOVDbSvcCfgTest SCRIPT python -m IOVDbSvc.IOVDbSvcConfig POST_EXEC_SCRIPT nopost.sh
)
This diff is collapsed.
Click to expand it.
Database/IOVDbSvc/python/IOVDbSvcConfig.py
+
14
−
0
View file @
dd0b1df8
...
...
@@ -218,3 +218,17 @@ def _extractFolder(folderstr):
if
__name__
==
"
__main__
"
:
from
AthenaCommon.Configurable
import
Configurable
Configurable
.
configurableRun3Behavior
=
1
from
AthenaConfiguration.AllConfigFlags
import
ConfigFlags
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
"
]
ConfigFlags
.
lock
()
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
acc
,
iovdbSvc
=
IOVDbSvcCfg
(
ConfigFlags
)
f
=
open
(
'
test.pkl
'
,
'
w
'
)
acc
.
store
(
f
)
f
.
close
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment