Index: build/android/pylib/browsertests/dispatch.py |
diff --git a/build/android/pylib/browsertests/dispatch.py b/build/android/pylib/browsertests/dispatch.py |
index c598d6447bd88ef7fe621c4fb22f2b1a21e6404d..919b0d9dbce4386cad672a63e6c957ac6dd3e0ce 100644 |
--- a/build/android/pylib/browsertests/dispatch.py |
+++ b/build/android/pylib/browsertests/dispatch.py |
@@ -4,6 +4,7 @@ |
import logging |
import os |
+import sys |
from pylib import android_commands |
from pylib import cmd_helper |
@@ -14,7 +15,9 @@ from pylib.gtest import dispatch as gtest_dispatch |
from pylib.gtest import test_runner |
from pylib.utils import report_results |
+sys.path.append(os.path.join(constants.CHROME_DIR, 'build', 'util', 'lib')) |
Paweł Hajdan Jr.
2013/05/31 16:49:18
Does CHROME_DIR refer to src or src/chrome? If the
Paweł Hajdan Jr.
2013/06/06 20:50:57
This can now be DIR_SOURCE_ROOT, right?
After you
|
+from common import unittest_util |
def Dispatch(options): |
attached_devices = [] |
@@ -53,12 +56,13 @@ def Dispatch(options): |
constants.BROWSERTEST_TEST_ACTIVITY_NAME, |
constants.BROWSERTEST_COMMAND_LINE_FILE) |
- # Get tests and split them up based on the number of devices. |
+ # Get tests and split them up based on the number of devices. |
+ all_enabled = gtest_dispatch.GetAllEnabledTests(RunnerFactory, |
+ attached_devices) |
if options.gtest_filter: |
- all_tests = [t for t in options.gtest_filter.split(':') if t] |
+ all_tests = unittest_util.FilterTestNames(all_enabled, |
+ options.gtest_filter) |
else: |
- all_enabled = gtest_dispatch.GetAllEnabledTests(RunnerFactory, |
- attached_devices) |
all_tests = _FilterTests(all_enabled) |
# Run tests. |