File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ add_test_with_env(FunctionalTransformerRuntimeCollectionsMultiple options/Exampl
132
132
add_test_with_env (FunctionalProducerHist options /ExampleFunctionalProducerHist.py )
133
133
134
134
add_test (NAME FunctionalCheckFiles COMMAND python3 ${CMAKE_CURRENT_LIST_DIR} /options/CheckOutputFiles.py )
135
- set_tests_properties (FunctionalCheckFiles PROPERTIES DEPENDS "FunctionalFile;FunctionalMTFile;FunctionalMultipleFile;FunctionalOutputCommands;FunctionalProducerAbsolutePath;FunctionalTransformerRuntimeEmpty;FunctionalMix;FunctionalMixIOSvc" )
135
+ set_tests_properties (FunctionalCheckFiles PROPERTIES DEPENDS "FunctionalFile;FunctionalMTFile;FunctionalMultipleFile;FunctionalOutputCommands;FunctionalProducerAbsolutePath;FunctionalTransformerRuntimeEmpty;FunctionalMix;FunctionalMixIOSvc;FunctionalProducerHist " )
136
136
# Do this after checking the files not to overwrite them
137
137
add_test_with_env (FunctionalFile_toolong options /ExampleFunctionalFile.py -n 999 PROPERTIES DEPENDS FunctionalCheckFiles PASS_REGULAR_EXPRESSION
138
138
"Application Manager Terminated successfully with a user requested ScheduledStop" )
Original file line number Diff line number Diff line change 23
23
24
24
print (f'PYTHONPATH={ os .environ ["PYTHONPATH" ]} ' )
25
25
raise
26
+ import ROOT
26
27
27
28
28
29
def check_collections (filename , names ):
@@ -118,3 +119,9 @@ def check_collections(filename, names):
118
119
"output_k4test_exampledata_functional_mix_iosvc.root" ,
119
120
mix_collections ,
120
121
)
122
+
123
+ f = ROOT .TFile .Open ("functional_producer_hist.root" )
124
+ for i in range (2 ):
125
+ if str (f .GetListOfKeys ()[i ]) != f'Name: ExampleFunctionalProducer{ i + 1 } Title: ExampleFunctionalProducer{ i + 1 } ' :
126
+ raise RuntimeError ("Directory structure does not match expected for functional_producer_hist.root" )
127
+
You can’t perform that action at this time.
0 commit comments