12 import b2test_utils
as b2u
13 import validation_gt
as vgt
15 if __name__ ==
"__main__":
18 if 'BELLE2_VALIDATION_DATA_DIR' not in os.environ:
19 b2.B2INFO(
'Skipping the b2klm-create-dqm test.')
21 globaltags =
' '.join(vgt.get_validation_globaltags())
22 for input_file
in glob.glob(os.environ[
'BELLE2_VALIDATION_DATA_DIR'] +
'/rawdata/*HLT?.*.root'):
23 with b2u.clean_working_directory()
as test_klm_tools:
24 command = f
'b2klm-create-dqm -i {input_file} -n 100 --prepend_gt {globaltags}'
25 assert(0 == os.system(command))
28 command =
'b2klm-numberToIndex 20 50020'
29 assert(0 == os.system(command))
32 command =
'b2klm-indexToNumber 11489 21997'
33 assert(0 == os.system(command))