| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
| 9 | 9 |
| 10 usage = ''' | 10 usage = ''' |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 def lineno(): | 23 def lineno(): |
| 24 caller = inspect.stack()[1] # Up one level to our caller. | 24 caller = inspect.stack()[1] # Up one level to our caller. |
| 25 return inspect.getframeinfo(caller[0]).lineno | 25 return inspect.getframeinfo(caller[0]).lineno |
| 26 | 26 |
| 27 | 27 |
| 28 cov_start = lineno()+1 # We care about coverage starting just past this def. | 28 cov_start = lineno()+1 # We care about coverage starting just past this def. |
| 29 def get_args(bot): | 29 def get_args(bot): |
| 30 args = [] | 30 args = [] |
| 31 | 31 |
| 32 # Temporarily disable image benchmarking. |
| 33 args.append('--images') |
| 34 |
| 32 if 'Appurify' not in bot: | 35 if 'Appurify' not in bot: |
| 33 args.extend(['--scales', '1.0', '1.1']) | 36 args.extend(['--scales', '1.0', '1.1']) |
| 34 | 37 |
| 35 if 'iOS' in bot: | 38 if 'iOS' in bot: |
| 36 args.extend(['--skps', 'ignore_skps']) | 39 args.extend(['--skps', 'ignore_skps']) |
| 37 | 40 |
| 38 if 'Appurify' not in bot: | 41 if 'Appurify' not in bot: |
| 39 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] | 42 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] |
| 40 # The S4 crashes and the NP produces a long error stream when we run with | 43 # The S4 crashes and the NP produces a long error stream when we run with |
| 41 # MSAA. | 44 # MSAA. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 122 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 120 self_test() | 123 self_test() |
| 121 sys.exit(0) | 124 sys.exit(0) |
| 122 | 125 |
| 123 if len(sys.argv) != 3: | 126 if len(sys.argv) != 3: |
| 124 print usage | 127 print usage |
| 125 sys.exit(1) | 128 sys.exit(1) |
| 126 | 129 |
| 127 with open(sys.argv[1], 'w') as out: | 130 with open(sys.argv[1], 'w') as out: |
| 128 json.dump(get_args(sys.argv[2]), out) | 131 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |