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

Side by Side Diff: build/android/pylib/browsertests/dispatch.py

Issue 16124010: [Android] Fix import error in browsertests/dispatch.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 5 import logging
6 import os 6 import os
7 import sys 7 import sys
8 8
9 from pylib import android_commands 9 from pylib import android_commands
10 from pylib import cmd_helper 10 from pylib import cmd_helper
11 from pylib import constants 11 from pylib import constants
12 from pylib import ports 12 from pylib import ports
13 from pylib.base import shard 13 from pylib.base import shard
14 from pylib.gtest import dispatch as gtest_dispatch 14 from pylib.gtest import dispatch as gtest_dispatch
15 from pylib.gtest import test_runner 15 from pylib.gtest import test_runner
16 from pylib.utils import report_results 16 from pylib.utils import report_results
17 17
18 sys.path.append(os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'util', 'lib')) 18 sys.path.insert(0,
19 os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'util', 'lib'))
19 20
20 from common import unittest_util 21 from common import unittest_util
21 22
22 def Dispatch(options): 23 def Dispatch(options):
23 attached_devices = [] 24 attached_devices = []
24 if options.test_device: 25 if options.test_device:
25 attached_devices = [options.test_device] 26 attached_devices = [options.test_device]
26 else: 27 else:
27 attached_devices = android_commands.GetAttachedDevices() 28 attached_devices = android_commands.GetAttachedDevices()
28 29
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 def _ShouldRunOnBot(test): 90 def _ShouldRunOnBot(test):
90 fixture, case = test.split('.', 1) 91 fixture, case = test.split('.', 1)
91 if _StartsWith(fixture, case, "PRE_"): 92 if _StartsWith(fixture, case, "PRE_"):
92 return False 93 return False
93 if _StartsWith(fixture, case, "MANUAL_"): 94 if _StartsWith(fixture, case, "MANUAL_"):
94 return False 95 return False
95 return True 96 return True
96 97
97 def _StartsWith(a, b, prefix): 98 def _StartsWith(a, b, prefix):
98 return a.startswith(prefix) or b.startswith(prefix) 99 return a.startswith(prefix) or b.startswith(prefix)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698