All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
abort_event_test.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 import BaseTest
3 from BaseTest import *
4 
5 class Test(BaseTest):
6 
7  def __init__(self):
8  BaseTest.__init__(self)
9  self.name = os.path.basename(__file__)[:-3]
10  self.program = "gaudirun.py"
11  self.options="""from Gaudi.Configuration import *
12 from Configurables import HelloWorld, AbortEventAlg
13 
14 importOptions("Common.opts")
15 
16 h1 = HelloWorld("HelloWorld1")
17 h2 = HelloWorld("HelloWorld2")
18 
19 alg = AbortEventAlg(AbortedEventNumber = 3)
20 
21 app = ApplicationMgr(TopAlg = [h1,alg,h2],
22  EvtSel = "NONE", EvtMax = 5)
23 
24 MessageSvc().setDebug.append("EventLoopMgr") """
25 
26  def validator(self,stdout,stderr, result, causes, reference, error_reference):
27  self.findReferenceBlock("""
28 HelloWorld1 INFO beginning new run....
29 HelloWorld2 INFO beginning new run....
30 HelloWorld1 INFO executing....
31 HelloWorld2 INFO executing....
32 HelloWorld1 INFO executing....
33 HelloWorld2 INFO executing....
34 HelloWorld1 INFO executing....
35 EventLoopMgr DEBUG AbortEvent incident fired by AbortEventAlg
36 HelloWorld1 INFO executing....
37 HelloWorld2 INFO executing....
38 HelloWorld1 INFO executing....
39 HelloWorld2 INFO executing....
40 HelloWorld1 INFO ending new run....
41 HelloWorld2 INFO ending new run....
42 """, signature_offset = 7)
def findReferenceBlock
Definition: BaseTest.py:178