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

Side by Side Diff: build/android/pylib/junit/test_runner.py

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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 json 5 import json
6 import os 6 import os
7 import tempfile 7 import tempfile
8 8
9 from pylib import cmd_helper 9 from devil.utils import cmd_helper
10 from pylib import constants 10 from pylib import constants
11 from pylib.base import base_test_result 11 from pylib.base import base_test_result
12 from pylib.results import json_results 12 from pylib.results import json_results
13 13
14 class JavaTestRunner(object): 14 class JavaTestRunner(object):
15 """Runs java tests on the host.""" 15 """Runs java tests on the host."""
16 16
17 def __init__(self, args): 17 def __init__(self, args):
18 self._package_filter = args.package_filter 18 self._package_filter = args.package_filter
19 self._runner_filter = args.runner_filter 19 self._runner_filter = args.runner_filter
(...skipping 21 matching lines...) Expand all
41 if self._sdk_version: 41 if self._sdk_version:
42 command.extend(['-sdk-version', self._sdk_version]) 42 command.extend(['-sdk-version', self._sdk_version])
43 return_code = cmd_helper.RunCmd(command) 43 return_code = cmd_helper.RunCmd(command)
44 results_list = json_results.ParseResultsFromJson( 44 results_list = json_results.ParseResultsFromJson(
45 json.loads(json_file.read())) 45 json.loads(json_file.read()))
46 return (results_list, return_code) 46 return (results_list, return_code)
47 47
48 def TearDown(self): 48 def TearDown(self):
49 pass 49 pass
50 50
OLDNEW
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | build/android/pylib/linker/test_case.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698