All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bug_41136_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__)[:-5]
10  self.program="gaudirun.py"
11  self.args=["-v"]
12  self.exit_code=1
13  self.options="""
14 from Gaudi.Configuration import *
15 from Configurables import TestToolFailing, TestToolAlgFailure
16 
17 tta1 = TestToolAlgFailure("TestAlg1", Tools = [ TestToolFailing("Tool") ], IgnoreFailure = True)
18 tta2 = TestToolAlgFailure("TestAlg2", Tools = [ TestToolFailing("Tool") ], IgnoreFailure = False)
19 
20 ApplicationMgr(TopAlg = [ tta1, tta2 ],
21  EvtSel = "NONE",
22  EvtMax = 1)
23 """
24 
25  def validator(self,stdout,stderr, result, causes, reference, error_reference):
26  self.countErrorLines({"FATAL":2,
27  "ERROR":7,
28  })