Definition at line 5 of file event_timeout_test.py.
| def newFormat.event_timeout_test.Test.__init__ |
( |
|
self | ) |
|
Definition at line 7 of file event_timeout_test.py.
9 BaseTest.__init__(self)
10 self.
name = os.path.basename(__file__)[:-5]
13 from Gaudi.Configuration import *
15 from Configurables import GaudiTesting__SleepyAlg as SleepyAlg
16 from Configurables import StalledEventMonitor
18 importOptions("Common.opts")
20 alg = SleepyAlg("Sleepy", SleepTime = 11)
21 sem = StalledEventMonitor(EventTimeout = 2)
23 app = ApplicationMgr(TopAlg = [alg],
24 EvtSel = "NONE", EvtMax = 2,
25 StalledEventMonitoring = True)
| def newFormat.event_timeout_test.Test.validator |
( |
|
self, |
|
|
|
stdout, |
|
|
|
stderr, |
|
|
|
result, |
|
|
|
causes, |
|
|
|
reference, |
|
|
|
error_reference |
|
) |
| |
Definition at line 27 of file event_timeout_test.py.
28 def validator(self,stdout,stderr, result, causes, reference, error_reference):
30 stdout = re.subn(
r"size = [0-9]+(\.[0-9]*)? MB",
"size = # MB", stdout)[0]
33 ApplicationMgr INFO Application Manager Started successfully
34 Sleepy INFO Executing event 1
35 Sleepy INFO Sleeping for 11 seconds
36 EventWatchdog WARNING More than 2s since the last BeginEvent
37 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
38 EventWatchdog WARNING Other 2s passed
39 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
40 EventWatchdog WARNING Other 2s passed
41 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
42 EventWatchdog WARNING Other 2s passed
43 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
44 EventWatchdog WARNING Other 2s passed
45 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
46 Sleepy INFO Back from sleep
47 EventWatchdog INFO Starting a new event after ~10s
48 Sleepy INFO Executing event 2
49 Sleepy INFO Sleeping for 11 seconds
50 EventWatchdog WARNING More than 2s since the last BeginEvent
51 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
52 EventWatchdog WARNING Other 2s passed
53 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
54 EventWatchdog WARNING Other 2s passed
55 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
56 EventWatchdog WARNING Other 2s passed
57 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
58 EventWatchdog WARNING Other 2s passed
59 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
60 Sleepy INFO Back from sleep
61 EventWatchdog INFO The last event took ~10s
62 ApplicationMgr INFO Application Manager Stopped successfully
""", stdout = stdout)
| newFormat.event_timeout_test.Test.name |
| newFormat.event_timeout_test.Test.options |
| newFormat.event_timeout_test.Test.program |
The documentation for this class was generated from the following file: