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

Unified Diff: build/android/pylib/perf/test_runner.py

Issue 23601019: [Android] Create out directory for sharded perf tests during setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/perf/setup.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/test_runner.py
diff --git a/build/android/pylib/perf/test_runner.py b/build/android/pylib/perf/test_runner.py
index f125a234b0b9c7c0b9cd514b3d6bdc93cb65e5c7..bded68fb7f8270a9781112f83f03dd2329f8cac9 100644
--- a/build/android/pylib/perf/test_runner.py
+++ b/build/android/pylib/perf/test_runner.py
@@ -46,16 +46,12 @@ import pexpect
import pickle
import os
import sys
-import time
from pylib import constants
from pylib.base import base_test_result
from pylib.base import base_test_runner
-_OUTPUT_DIR = os.path.join(constants.DIR_SOURCE_ROOT, 'out', 'step_results')
-
-
def PrintTestOutput(test_name):
"""Helper method to print the output of previously executed test_name.
@@ -65,7 +61,7 @@ def PrintTestOutput(test_name):
Returns:
exit code generated by the test step.
"""
- file_name = os.path.join(_OUTPUT_DIR, test_name)
+ file_name = os.path.join(constants.PERF_OUTPUT_DIR, test_name)
if not os.path.exists(file_name):
logging.error('File not found %s', file_name)
return 1
@@ -98,7 +94,8 @@ class TestRunner(base_test_runner.BaseTestRunner):
@staticmethod
def _SaveResult(result):
- with file(os.path.join(_OUTPUT_DIR, result['name']), 'w') as f:
+ with file(os.path.join(constants.PERF_OUTPUT_DIR,
+ result['name']), 'w') as f:
f.write(pickle.dumps(result))
def _LaunchPerfTest(self, test_name):
« no previous file with comments | « build/android/pylib/perf/setup.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698