| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import unittest | 6 import unittest |
| 7 | 7 |
| 8 from catapult_build import build_steps | 8 from catapult_build import build_steps |
| 9 | 9 |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 self.assertIsInstance(test['additional_args'], list, msg=( | 30 self.assertIsInstance(test['additional_args'], list, msg=( |
| 31 'additional_args %s in build_steps._CATAPULT_TESTS %s not a list' | 31 'additional_args %s in build_steps._CATAPULT_TESTS %s not a list' |
| 32 % (test['additional_args'], test['name']) | 32 % (test['additional_args'], test['name']) |
| 33 )) | 33 )) |
| 34 if test.get('disabled'): | 34 if test.get('disabled'): |
| 35 self.assertIsInstance(test['disabled'], list, msg=( | 35 self.assertIsInstance(test['disabled'], list, msg=( |
| 36 'disabled %s in build_steps._CATAPULT_TESTS for %s not a list' | 36 'disabled %s in build_steps._CATAPULT_TESTS for %s not a list' |
| 37 % (test['disabled'], test['name']) | 37 % (test['disabled'], test['name']) |
| 38 )) | 38 )) |
| 39 for platform in test['disabled']: | 39 for platform in test['disabled']: |
| 40 self.assertIn(platform, ['win', 'mac', 'linux'], msg=( | 40 self.assertIn(platform, ['win', 'mac', 'linux', 'android'], msg=( |
| 41 'Bad platform %s in build_steps._CATAPULT_TESTS for %s;' | 41 'Bad platform %s in build_steps._CATAPULT_TESTS for %s;' |
| 42 'should be one of "linux", "win", "mac"' % ( | 42 'should be one of "linux", "win", "mac"' % ( |
| 43 platform, test['name']) | 43 platform, test['name']) |
| 44 )) | 44 )) |
| OLD | NEW |