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

Side by Side Diff: build/android/pylib/local/machine/local_machine_junit_test_run.py

Issue 2933993002: Add local results details pages.
Patch Set: Add --local-output arg which enables local results detail pages. Created 3 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 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 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 zipfile 7 import zipfile
8 8
9 from devil.utils import cmd_helper 9 from devil.utils import cmd_helper
10 from devil.utils import reraiser_thread 10 from devil.utils import reraiser_thread
11 from pylib import constants 11 from pylib import constants
12 from pylib.base import base_test_result 12 from pylib.base import base_test_result
13 from pylib.base import test_run 13 from pylib.base import test_run
14 from pylib.results import json_results 14 from pylib.results import json_results
15 from py_utils import tempfile_ext 15 from py_utils import tempfile_ext
16 16
17 17
18 class LocalMachineJunitTestRun(test_run.TestRun): 18 class LocalMachineJunitTestRun(test_run.TestRun):
19 def __init__(self, env, test_instance): 19 def __init__(self, env, test_instance, test_output_saver):
20 super(LocalMachineJunitTestRun, self).__init__(env, test_instance) 20 super(LocalMachineJunitTestRun, self).__init__(
21 env, test_instance, test_output_saver)
21 22
22 #override 23 #override
23 def TestPackage(self): 24 def TestPackage(self):
24 return self._test_instance.suite 25 return self._test_instance.suite
25 26
26 #override 27 #override
27 def SetUp(self): 28 def SetUp(self):
28 pass 29 pass
29 30
30 #override 31 #override
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 ] 110 ]
110 111
111 test_run_results = base_test_result.TestRunResults() 112 test_run_results = base_test_result.TestRunResults()
112 test_run_results.AddResults(results_list) 113 test_run_results.AddResults(results_list)
113 114
114 return [test_run_results] 115 return [test_run_results]
115 116
116 #override 117 #override
117 def TearDown(self): 118 def TearDown(self):
118 pass 119 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698