Mercurial > hg > graal-jvmci-8
diff mx/sanitycheck.py @ 7562:1c09bcebd61f
spelling fix
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 27 Jan 2013 23:09:56 +0100 |
parents | cbcee2e1ce51 |
children | 3aab15f42934 |
line wrap: on
line diff
--- a/mx/sanitycheck.py Sun Jan 27 21:07:16 2013 +0100 +++ b/mx/sanitycheck.py Sun Jan 27 23:09:56 2013 +0100 @@ -202,15 +202,15 @@ scoreMatcherBig = Matcher(time, {'const:group' : 'const:Bootstrap-bigHeap', 'const:name' : 'const:BootstrapTime', 'const:score' : 'time'}) tests = [] - tests.append(Test("Bootstrap", ['-version'], successREs=[time], scoreMatchers=[scoreMatcher], ingoreVms=['client', 'server'])) - tests.append(Test("Bootstrap-bigHeap", ['-version'], successREs=[time], scoreMatchers=[scoreMatcherBig], vmOpts=['-Xms2g'], ingoreVms=['client', 'server'])) + tests.append(Test("Bootstrap", ['-version'], successREs=[time], scoreMatchers=[scoreMatcher], ignoredVMs=['client', 'server'])) + tests.append(Test("Bootstrap-bigHeap", ['-version'], successREs=[time], scoreMatchers=[scoreMatcherBig], vmOpts=['-Xms2g'], ignoredVMs=['client', 'server'])) return tests """ Encapsulates a single program that is a sanity test and/or a benchmark. """ class Test: - def __init__(self, name, cmd, successREs=[], failureREs=[], scoreMatchers=[], vmOpts=[], defaultCwd=None, ingoreVms=[]): + def __init__(self, name, cmd, successREs=[], failureREs=[], scoreMatchers=[], vmOpts=[], defaultCwd=None, ignoredVMs=[]): self.name = name self.successREs = successREs self.failureREs = failureREs + [re.compile(r"Exception occured in scope: ")] @@ -218,7 +218,7 @@ self.vmOpts = vmOpts self.cmd = cmd self.defaultCwd = defaultCwd - self.ingoreVms = ingoreVms; + self.ignoredVMs = ignoredVMs; def __str__(self): @@ -228,7 +228,7 @@ """ Run this program as a sanity test. """ - if (vm in self.ingoreVms): + if (vm in self.ignoredVMs): return True; if cwd is None: cwd = self.defaultCwd @@ -269,7 +269,7 @@ """ Run this program as a benchmark. """ - if (vm in self.ingoreVms): + if (vm in self.ignoredVMs): return {}; if cwd is None: cwd = self.defaultCwd