OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 import re | 30 import re |
31 | 31 |
32 # These outcomes can occur in a TestCase's outcomes list: | 32 # These outcomes can occur in a TestCase's outcomes list: |
33 SKIP = 'SKIP' | 33 SKIP = 'SKIP' |
34 FAIL = 'FAIL' | 34 FAIL = 'FAIL' |
35 PASS = 'PASS' | 35 PASS = 'PASS' |
36 OKAY = 'OKAY' | 36 OKAY = 'OKAY' |
37 TIMEOUT = 'TIMEOUT' | 37 TIMEOUT = 'TIMEOUT' |
38 CRASH = 'CRASH' | 38 CRASH = 'CRASH' |
39 SLOW = 'SLOW' | 39 SLOW = 'SLOW' |
| 40 FLAKY = 'FLAKY' |
40 # These are just for the status files and are mapped below in DEFS: | 41 # These are just for the status files and are mapped below in DEFS: |
41 FAIL_OK = 'FAIL_OK' | 42 FAIL_OK = 'FAIL_OK' |
42 PASS_OR_FAIL = 'PASS_OR_FAIL' | 43 PASS_OR_FAIL = 'PASS_OR_FAIL' |
43 | 44 |
44 KEYWORDS = {SKIP: SKIP, | 45 KEYWORDS = {SKIP: SKIP, |
45 FAIL: FAIL, | 46 FAIL: FAIL, |
46 PASS: PASS, | 47 PASS: PASS, |
47 OKAY: OKAY, | 48 OKAY: OKAY, |
48 TIMEOUT: TIMEOUT, | 49 TIMEOUT: TIMEOUT, |
49 CRASH: CRASH, | 50 CRASH: CRASH, |
50 SLOW: SLOW, | 51 SLOW: SLOW, |
| 52 FLAKY: FLAKY, |
51 FAIL_OK: FAIL_OK, | 53 FAIL_OK: FAIL_OK, |
52 PASS_OR_FAIL: PASS_OR_FAIL} | 54 PASS_OR_FAIL: PASS_OR_FAIL} |
53 | 55 |
54 class Expression(object): | 56 class Expression(object): |
55 pass | 57 pass |
56 | 58 |
57 | 59 |
58 class Constant(Expression): | 60 class Constant(Expression): |
59 | 61 |
60 def __init__(self, value): | 62 def __init__(self, value): |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 continue | 453 continue |
452 prefix_match = PREFIX_PATTERN.match(line) | 454 prefix_match = PREFIX_PATTERN.match(line) |
453 if prefix_match: | 455 if prefix_match: |
454 continue | 456 continue |
455 print "Malformed line: '%s'." % line | 457 print "Malformed line: '%s'." % line |
456 self.CloseSection() | 458 self.CloseSection() |
457 self.CloseGlobal() | 459 self.CloseGlobal() |
458 result = self.out.getvalue() | 460 result = self.out.getvalue() |
459 self.out.close() | 461 self.out.close() |
460 return result | 462 return result |
OLD | NEW |