Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: scripts/slave/recipe_modules/blimp/api.py

Issue 2416253003: Add the recipe_modules/blimp for integration bot (Closed)
Patch Set: add script steps in example.py Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 from recipe_engine import recipe_api
6 from recipe_engine.config_types import Path
7
8 class BlimpApi(recipe_api.RecipeApi):
9 def get_config_defaults(self):
mikecase (-- gone --) 2016/10/15 00:05:37 not sure what this does. Do you need it?
shenghuazhang 2016/10/17 23:22:07 Seems like BaseConfig(CHECKOUT_PATH, **_kwargs) in
10 return {
11 'CHECKOUT_PATH': self.m.path['checkout'],
12 }
13
14 def run_engine_forwarder(self, output_linux_dir, **kwargs):
mikecase (-- gone --) 2016/10/15 00:05:37 I would change this to be a context manager. So i
shenghuazhang 2016/10/17 23:22:07 Done.
15 args = [
16 '-l', output_linux_dir,
17 'run',
18 ]
19 self.m.python('[Blimp] Starting engine and forwarder',
20 self.c.client_engine_integration_script,
21 args,
22 **kwargs)
23
24 # Installs apk in client and runs blimp.
25 def load_client(self, output_linux_dir, apk_path, **kwargs):
26 args = [
27 '-l', output_linux_dir,
28 'load',
29 '--apk-path', apk_path,
30 ]
31 self.m.python('[Blimp] Installing apk and running blimp',
32 self.c.client_engine_integration_script,
33 args,
34 **kwargs)
35
36 def stop_engine_forwarder(self, output_linux_dir, **kwargs):
37 args = [
38 '-l', output_linux_dir,
39 'stop',
40 ]
41 self.m.python('[Blimp] Killing engine and forwarder',
42 self.c.client_engine_integration_script,
43 args,
44 **kwargs)
45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698