Home | History | Annotate | Download | only in sputnik

Lines Matching full:self

38   def __init__(self, case, path, context, mode):
39 super(SputnikTestCase, self).__init__(context, path, mode)
40 self.case = case
41 self.tmpfile = None
42 self.source = None
44 def IsNegative(self):
45 return '@negative' in self.GetSource()
47 def IsFailureOutput(self, output):
53 def BeforeRun(self):
54 self.tmpfile = sputnik.TempFile(suffix='.js', prefix='sputnik-', text=True)
55 self.tmpfile.Write(self.GetSource())
56 self.tmpfile.Close()
58 def AfterRun(self, result):
60 if not result.HasPreciousOutput(): self.tmpfile.Dispose()
61 self.tmpfile = None
63 def GetCommand(self):
64 result = self.context.GetVmCommand(self, self.mode)
65 result.append(self.tmpfile.name)
68 def GetLabel(self):
69 return "%s sputnik %s" % (self.mode, self.GetName())
71 def GetName(self):
72 return self.path[-1]
74 def GetSource(self):
75 if not self.source:
76 self.source = self.case.GetSource()
77 return self.source
81 def __init__(self, context, root):
82 super(SputnikTestConfiguration, self).__init__(context, root)
84 def ListTests(self, current_path, path, mode, variant_flags):
86 testroot = join(self.root, 'sputniktests')
98 if self.Contains(path, full_path):
99 case = SputnikTestCase(test, full_path, self.context, mode)
103 def GetBuildRequirements(self):
106 def GetTestStatus(self, sections, defs):
107 status_file = join(self.root, 'sputnik.status')