7 BaseTest.__init__(self)
18 type = child.attrib[
'name']
21 if type ==
'args' or type ==
'unsupported_platforms':
22 textList = child[0].findall(
'text')
25 elif type ==
'environment':
27 envList= child[0].findall(
'text')
29 indexDictPart= el.text.rfind(
"=")
30 dic[type][el.text[:indexDictPart]]=el.text[indexDictPart+1:]
32 dic[type] = child[0].text
37 class CallWrapper(object):
39 Small wrapper class to dynamically bind some default arguments
42 def __init__(self, callable, extra_args = {}):
46 from inspect
import getargspec
52 def __call__(self, *args, **kwargs):
60 if a
not in positional
and a
not in kwargs:
62 return apply(self.
callable, args, kwargs)
65 exported_symbols = {
"self":self,
74 "validateWithReference":
83 "checkTTreesSummaries":
87 "checkHistosSummaries":
92 exec self.
validator in globals(),exported_symbols
97 self.causes.append(
"DIFFERENT STDERR THAN EXPECTED")
def validateWithReference