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' | |
41 # 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: |
42 FAIL_OK = 'FAIL_OK' | 41 FAIL_OK = 'FAIL_OK' |
43 PASS_OR_FAIL = 'PASS_OR_FAIL' | 42 PASS_OR_FAIL = 'PASS_OR_FAIL' |
44 | 43 |
45 KEYWORDS = {SKIP: SKIP, | 44 KEYWORDS = {SKIP: SKIP, |
46 FAIL: FAIL, | 45 FAIL: FAIL, |
47 PASS: PASS, | 46 PASS: PASS, |
48 OKAY: OKAY, | 47 OKAY: OKAY, |
49 TIMEOUT: TIMEOUT, | 48 TIMEOUT: TIMEOUT, |
50 CRASH: CRASH, | 49 CRASH: CRASH, |
51 SLOW: SLOW, | 50 SLOW: SLOW, |
52 FLAKY: FLAKY, | |
53 FAIL_OK: FAIL_OK, | 51 FAIL_OK: FAIL_OK, |
54 PASS_OR_FAIL: PASS_OR_FAIL} | 52 PASS_OR_FAIL: PASS_OR_FAIL} |
55 | 53 |
56 class Expression(object): | 54 class Expression(object): |
57 pass | 55 pass |
58 | 56 |
59 | 57 |
60 class Constant(Expression): | 58 class Constant(Expression): |
61 | 59 |
62 def __init__(self, value): | 60 def __init__(self, value): |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 continue | 451 continue |
454 prefix_match = PREFIX_PATTERN.match(line) | 452 prefix_match = PREFIX_PATTERN.match(line) |
455 if prefix_match: | 453 if prefix_match: |
456 continue | 454 continue |
457 print "Malformed line: '%s'." % line | 455 print "Malformed line: '%s'." % line |
458 self.CloseSection() | 456 self.CloseSection() |
459 self.CloseGlobal() | 457 self.CloseGlobal() |
460 result = self.out.getvalue() | 458 result = self.out.getvalue() |
461 self.out.close() | 459 self.out.close() |
462 return result | 460 return result |
OLD | NEW |