OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 logging | |
6 | |
7 from pylib.remote.device import remote_device_gtest_run | |
8 from pylib.remote.device import remote_device_uirobot_run | |
9 | |
5 def CreateTestRun(_options, _env, _test_instance, error_func): | 10 def CreateTestRun(_options, _env, _test_instance, error_func): |
jbudorick
2014/12/03 22:46:09
Once you start using a parameter, you should remov
rnephew (Reviews Here)
2014/12/03 23:49:25
Done.
| |
6 | 11 if (_options.environment == 'remote_device' and |
jbudorick
2014/12/03 22:46:09
Why check if options.environment == 'remote_device
rnephew (Reviews Here)
2014/12/03 23:49:25
Done.
| |
12 _test_instance.TestType() == 'gtest'): | |
13 return remote_device_gtest_run.RemoteDeviceGtestRun(_env, _test_instance) | |
14 if (_options.environment == 'remote_device' and | |
15 _test_instance.TestType() == 'uirobot'): | |
16 return remote_device_uirobot_run.RemoteDeviceUirobotRun( | |
17 _env,_test_instance) | |
7 # TODO(jbudorick) Add local gtest test runs | 18 # TODO(jbudorick) Add local gtest test runs |
8 # TODO(jbudorick) Add local instrumentation test runs. | 19 # TODO(jbudorick) Add local instrumentation test runs. |
9 error_func('No test runs are currently supported.') | 20 error_func('No test runs are currently supported.') |
10 | 21 |
OLD | NEW |