ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfData
share
doubleTestComp.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
import
json
4
import
sys
5
import
os, os.path
6
7
testStatus = int(os.environ[
"ATLAS_CTEST_TESTSTATUS"
])
8
if
testStatus != 0:
9
print
(f
"Post evaluation: ERROR: previous step went wrong (exit code {testStatus})"
)
10
sys.exit(testStatus)
11
12
if
os.path.exists(
"NoDBConnection.txt"
):
13
# in case we don't have a db connection we don't run this test
14
sys.exit(0)
15
16
17
foundUnequal=
False
18
19
for
ft
in
[
"L1Menu"
,
"L1Prescales"
,
"Bunchgroups"
,
"HLTMenu"
,
"HLTPrescales"
]:
20
with
open(
"%s1.json"
% ft,
'r'
)
as
fh1, open(
"%s2.json"
% ft,
'r'
)
as
fh2:
21
j1 = json.load(fh1)
22
j2 = json.load(fh2)
23
24
if
j1 == j2:
25
print
(f
"Post evaluation: Files {ft}1.json and {ft}2.json are identical"
)
26
else
:
27
print
(f
"Post evaluation: ERROR: Files {ft}1.json and {ft}2.json are not identical !!"
)
28
foundUnequal =
True
29
30
if
foundUnequal:
31
sys.exit(1)
32
else
:
33
sys.exit(0)
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0