From f1f6ba31d2ad7aef68fc866ff6115e68363ccc15 Mon Sep 17 00:00:00 2001 From: Juraj Smiesko Date: Fri, 11 Aug 2023 13:17:16 +0200 Subject: [PATCH 1/2] Import VERBOSE --- k4FWCore/scripts/k4run | 1 + 1 file changed, 1 insertion(+) diff --git a/k4FWCore/scripts/k4run b/k4FWCore/scripts/k4run index 9fa272d2..76b3d038 100755 --- a/k4FWCore/scripts/k4run +++ b/k4FWCore/scripts/k4run @@ -148,6 +148,7 @@ if __name__ == "__main__": propTuple[0].setProp(propTuple[1].rsplit(".",1)[1], opts_dict[optionName]) if opts.verbose: + from Gaudi.Configuration import VERBOSE ApplicationMgr().OutputLevel = VERBOSE if opts.num_events is not None: ApplicationMgr().EvtMax = opts.num_events From fa2db540b789f13404baa8cea59762c6cc642c53 Mon Sep 17 00:00:00 2001 From: Juraj Smiesko Date: Fri, 11 Aug 2023 15:27:16 +0200 Subject: [PATCH 2/2] Adding test --- test/k4FWCoreTest/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/k4FWCoreTest/CMakeLists.txt b/test/k4FWCoreTest/CMakeLists.txt index fae73f8c..e4491fbf 100644 --- a/test/k4FWCoreTest/CMakeLists.txt +++ b/test/k4FWCoreTest/CMakeLists.txt @@ -143,4 +143,11 @@ add_test(NAME Testk4runCustomArguments COMMAND ${K4RUN} --foo=42 options/TestArgs.py) set_test_env(Testk4runCustomArguments) set_tests_properties(Testk4runCustomArguments - PROPERTIES PASS_REGULAR_EXPRESSION "The answer is 42") \ No newline at end of file + PROPERTIES PASS_REGULAR_EXPRESSION "The answer is 42") + +add_test(NAME Testk4runVerboseOutput + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} + COMMAND ${K4RUN} --verbose options/TestArgs.py) +set_test_env(Testk4runVerboseOutput) +set_tests_properties(Testk4runVerboseOutput + PROPERTIES PASS_REGULAR_EXPRESSION " VERBOSE ")