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

Side by Side Diff: tools/testrunner/local/statusfile.py

Issue 1197913002: Test262-es6 test runner should handle sloppy fail better (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix long line Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « test/test262-es6/testcfg.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 22 matching lines...) Expand all
33 OKAY = "OKAY" 33 OKAY = "OKAY"
34 TIMEOUT = "TIMEOUT" 34 TIMEOUT = "TIMEOUT"
35 CRASH = "CRASH" 35 CRASH = "CRASH"
36 SLOW = "SLOW" 36 SLOW = "SLOW"
37 FLAKY = "FLAKY" 37 FLAKY = "FLAKY"
38 FAST_VARIANTS = "FAST_VARIANTS" 38 FAST_VARIANTS = "FAST_VARIANTS"
39 NO_VARIANTS = "NO_VARIANTS" 39 NO_VARIANTS = "NO_VARIANTS"
40 # These are just for the status files and are mapped below in DEFS: 40 # These are just for the status files and are mapped below in DEFS:
41 FAIL_OK = "FAIL_OK" 41 FAIL_OK = "FAIL_OK"
42 PASS_OR_FAIL = "PASS_OR_FAIL" 42 PASS_OR_FAIL = "PASS_OR_FAIL"
43 FAIL_SLOPPY = "FAIL_SLOPPY"
43 44
44 ALWAYS = "ALWAYS" 45 ALWAYS = "ALWAYS"
45 46
46 KEYWORDS = {} 47 KEYWORDS = {}
47 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FLAKY, FAIL_OK, 48 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FLAKY, FAIL_OK,
48 FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, ALWAYS]: 49 FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY, ALWAYS]:
49 KEYWORDS[key] = key 50 KEYWORDS[key] = key
50 51
51 DEFS = {FAIL_OK: [FAIL, OKAY], 52 DEFS = {FAIL_OK: [FAIL, OKAY],
52 PASS_OR_FAIL: [PASS, FAIL]} 53 PASS_OR_FAIL: [PASS, FAIL]}
53 54
54 # Support arches, modes to be written as keywords instead of strings. 55 # Support arches, modes to be written as keywords instead of strings.
55 VARIABLES = {ALWAYS: True} 56 VARIABLES = {ALWAYS: True}
56 for var in ["debug", "release", "big", "little", 57 for var in ["debug", "release", "big", "little",
57 "android_arm", "android_arm64", "android_ia32", "android_x87", 58 "android_arm", "android_arm64", "android_ia32", "android_x87",
58 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", 59 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel",
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if not eval(section[0], variables): continue 140 if not eval(section[0], variables): continue
140 section = section[1] 141 section = section[1]
141 assert type(section) == dict 142 assert type(section) == dict
142 for rule in section: 143 for rule in section:
143 assert type(rule) == str 144 assert type(rule) == str
144 if rule[-1] == '*': 145 if rule[-1] == '*':
145 _ParseOutcomeList(rule, section[rule], wildcards, variables) 146 _ParseOutcomeList(rule, section[rule], wildcards, variables)
146 else: 147 else:
147 _ParseOutcomeList(rule, section[rule], rules, variables) 148 _ParseOutcomeList(rule, section[rule], rules, variables)
148 return rules, wildcards 149 return rules, wildcards
OLDNEW
« no previous file with comments | « test/test262-es6/testcfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698