| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 # that can be found in the LICENSE file. | |
| 4 | |
| 5 DEPS = [ | |
| 6 'platform', | |
| 7 'step', | |
| 8 ] | |
| 9 | |
| 10 def RunSteps(api): | |
| 11 step_result = api.step('platform things', cmd=None) | |
| 12 step_result.presentation.logs['name'] = [api.platform.name] | |
| 13 step_result.presentation.logs['bits'] = [str(api.platform.bits)] | |
| 14 step_result.presentation.logs['arch'] = [api.platform.arch] | |
| 15 step_result.presentation.logs['cpu_count'] = [str(api.platform.cpu_count)] | |
| 16 | |
| 17 | |
| 18 def GenTests(api): | |
| 19 yield api.test('linux64') + api.platform('linux', 64) | |
| 20 yield api.test('mac64') + api.platform('mac', 64) | |
| 21 yield api.test('win32') + api.platform('win', 32) | |
| 22 yield api.test('four_cores') + api.platform.cpu_count(4) | |
| OLD | NEW |