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 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 ")