| OLD | NEW |
| 1 # Copyright (c) 2009 Google Inc. All rights reserved. | 1 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 2 # Copyright (c) 2009 Apple Inc. All rights reserved. | 2 # Copyright (c) 2009 Apple Inc. All rights reserved. |
| 3 # Copyright (c) 2012 Intel Corporation. All rights reserved. | 3 # Copyright (c) 2012 Intel Corporation. All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 def __init__(self): | 64 def __init__(self): |
| 65 options = [ | 65 options = [ |
| 66 make_option('--all', action='store_true', default=False, | 66 make_option('--all', action='store_true', default=False, |
| 67 help='display the expectations for *all* tests'), | 67 help='display the expectations for *all* tests'), |
| 68 make_option('-x', '--exclude-keyword', action='append', default=[], | 68 make_option('-x', '--exclude-keyword', action='append', default=[], |
| 69 help='limit to tests not matching the given keyword (for
example, "skip", "slow", or "crash". May specify multiple times'), | 69 help='limit to tests not matching the given keyword (for
example, "skip", "slow", or "crash". May specify multiple times'), |
| 70 make_option('-i', '--include-keyword', action='append', default=[], | 70 make_option('-i', '--include-keyword', action='append', default=[], |
| 71 help='limit to tests with the given keyword (for example
, "skip", "slow", or "crash". May specify multiple times'), | 71 help='limit to tests with the given keyword (for example
, "skip", "slow", or "crash". May specify multiple times'), |
| 72 make_option('--csv', action='store_true', default=False, | 72 make_option('--csv', action='store_true', default=False, |
| 73 help='Print a CSV-style report that includes the port na
me, bugs, modifiers, tests, and expectations'), | 73 help='Print a CSV-style report that includes the port na
me, bugs, specifiers, tests, and expectations'), |
| 74 make_option('-f', '--full', action='store_true', default=False, | 74 make_option('-f', '--full', action='store_true', default=False, |
| 75 help='Print a full TestExpectations-style line for every
match'), | 75 help='Print a full TestExpectations-style line for every
match'), |
| 76 make_option('--paths', action='store_true', default=False, | 76 make_option('--paths', action='store_true', default=False, |
| 77 help='display the paths for all applicable expectation f
iles'), | 77 help='display the paths for all applicable expectation f
iles'), |
| 78 ] + platform_options(use_globs=True) | 78 ] + platform_options(use_globs=True) |
| 79 | 79 |
| 80 AbstractDeclarativeCommand.__init__(self, options=options) | 80 AbstractDeclarativeCommand.__init__(self, options=options) |
| 81 self._expectation_models = {} | 81 self._expectation_models = {} |
| 82 | 82 |
| 83 def execute(self, options, args, tool): | 83 def execute(self, options, args, tool): |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 print "%s,%s,%s,%s,%s,%s" % (port_name, test_name, self._pla
tform_for_path(test_name), | 200 print "%s,%s,%s,%s,%s,%s" % (port_name, test_name, self._pla
tform_for_path(test_name), |
| 201 extension[1:], baseline_locatio
n, self._platform_for_path(baseline_location)) | 201 extension[1:], baseline_locatio
n, self._platform_for_path(baseline_location)) |
| 202 else: | 202 else: |
| 203 print baseline_location | 203 print baseline_location |
| 204 | 204 |
| 205 def _platform_for_path(self, relpath): | 205 def _platform_for_path(self, relpath): |
| 206 platform_matchobj = self._platform_regexp.match(relpath) | 206 platform_matchobj = self._platform_regexp.match(relpath) |
| 207 if platform_matchobj: | 207 if platform_matchobj: |
| 208 return platform_matchobj.group(1) | 208 return platform_matchobj.group(1) |
| 209 return None | 209 return None |
| OLD | NEW |