Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/test.py

Issue 8341056: Add support for test expectations based on the --checked flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/standalone/standalone.status ('K') | « tests/standalone/standalone.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.py
diff --git a/tools/test.py b/tools/test.py
index e3896d3f3ea7298ee180fa95cacf4faed1a08709..233eac1c86cf1095043fd61a8f1534c0caf72c52 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -660,6 +660,9 @@ class Variable(Expression):
return ListSet([env[self.name]])
else: return Nothing()
+ def Evaluate(self, env, defs):
+ return env[self.name]
+
class Outcome(Expression):
@@ -979,8 +982,8 @@ class Configuration(object):
Args:
cases: list of TestCase objects to classify.
- env: dictionary containing values for 'mode': mode,
- 'system' and 'arch'.
+ env: dictionary containing values for 'mode',
+ 'system', 'arch' and 'checked'.
Returns:
A triplet of (result, rules, expected_outcomes).
@@ -1426,6 +1429,7 @@ def Main():
'mode': mode,
'system': utils.GuessOS(),
'arch': arch,
+ 'checked': options.checked
}
test_list = root.ListTests([], path, context, mode, arch)
(cases, unused_rules, unused_outcomes) = config.ClassifyTests(
« tests/standalone/standalone.status ('K') | « tests/standalone/standalone.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698