=== removed file 'lava_dispatcher/actions/android_deploy.py'
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-
-# Copyright (C) 2011 Linaro Limited
-#
-# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
-#
-# This file is part of LAVA Dispatcher.
-#
-# LAVA Dispatcher is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# LAVA Dispatcher is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses>.
-
-from lava_dispatcher.actions import BaseAction
-
-
-class cmd_deploy_linaro_android_image(BaseAction):
-
- parameters_schema = {
- 'type': 'object',
- 'properties': {
- 'boot': {'type': 'string'},
- 'system': {'type': 'string'},
- 'data': {'type': 'string'},
- 'rootfstype': {'type': 'string', 'optional': True, 'default': 'ext4'},
- },
- 'additionalProperties': False,
- }
-
- def run(self, boot, system, data, rootfstype='ext4'):
- self.client.deploy_linaro_android(boot, system, data, rootfstype)
=== modified file 'lava_dispatcher/actions/deploy.py'
@@ -72,3 +72,36 @@
def run(self, hwpack=None, rootfs=None, image=None, rootfstype='ext3'):
self.client.deploy_linaro(
hwpack=hwpack, rootfs=rootfs, image=image, rootfstype=rootfstype)
+
+
+class cmd_deploy_linaro_android_image(BaseAction):
+
+ parameters_schema = {
+ 'type': 'object',
+ 'properties': {
+ 'boot': {'type': 'string'},
+ 'system': {'type': 'string'},
+ 'data': {'type': 'string'},
+ 'rootfstype': {'type': 'string', 'optional': True, 'default': 'ext4'},
+ },
+ 'additionalProperties': False,
+ }
+
+ def run(self, boot, system, data, rootfstype='ext4'):
+ self.client.deploy_linaro_android(boot, system, data, rootfstype)
+
+
+class cmd_dummy_deploy(BaseAction):
+
+ parameters_schema = {
+ 'type': 'object',
+ 'properties': {
+ 'type': {'type': 'string', 'enum':['ubuntu', 'oe', 'android']},
+ },
+ 'additionalProperties': False,
+ }
+
+ def run(self, type):
+ device = self.client.target_device
+ device.boot_master_image()
+ device.deployment_data = device.target_map[type]
=== renamed file 'lava_dispatcher/actions/lava-android-test.py' => 'lava_dispatcher/actions/lava_android_test.py'
=== renamed file 'lava_dispatcher/actions/lava-test.py' => 'lava_dispatcher/actions/lava_test.py'
=== modified file 'lava_dispatcher/device/master.py'
@@ -69,8 +69,9 @@
Target.ubuntu_deployment_data['data_type'] = 'ubuntu'
Target.oe_deployment_data['data_type'] = 'oe'
self.target_map = {
+ 'android': Target.android_deployment_data,
+ 'oe': Target.oe_deployment_data,
'ubuntu': Target.ubuntu_deployment_data,
- 'oe': Target.oe_deployment_data,
}
self.master_ip = None