Belle II Software
light-2403-persian
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
test_tag_merge.py
1
8
9
'''
10
Test for checking if b2conditionsdb-tag-merge behaves as expted:
11
- highest priority to the first tag in the list;
12
- within the same tag, highest priority to the payloads with the highest revision number.
13
'''
14
15
16
import
subprocess
17
18
import
conditions_db
as
cdb
19
20
21
if
__name__ ==
'__main__'
:
22
23
tags = [
'main_tag_merge_test_1'
,
'main_tag_merge_test_2'
,
'main_tag_merge_test_3'
]
24
final_tag =
'main_tag_merge_test_0'
25
26
db = cdb.ConditionsDB()
27
28
for
tag
in
tags:
29
payloads = db.get_all_iovs(globalTag=tag)
30
payloads.sort(key=
lambda
p: p.iov)
31
32
for
payload
in
payloads:
33
print(f
' {payload.name} r{payload.revision} {payload.iov}'
)
34
35
subprocess.check_call([
'b2conditionsdb-tag-merge'
,
'-o'
, final_tag,
'--dry-run'
] + tags)
36
37
subprocess.check_call([
'b2conditionsdb-tag-merge'
,
'-o'
, final_tag,
'--dry-run'
,
'--run-range'
,
'5'
,
'0'
,
'5'
,
'300'
] + tags)
framework
tests
test_tag_merge.py
Generated on Fri Apr 12 2024 06:51:30 for Belle II Software by
1.9.1