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

Unified Diff: tools/run_perf.py

Issue 776873005: Fix path construction in perf runner. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/run_perf.py
diff --git a/tools/run_perf.py b/tools/run_perf.py
index 02cfe63beda435b3966b4dcca914d6e607c73c22..0a24c08e0775ad75057e3bfc9049c9ad97d7cd16 100755
--- a/tools/run_perf.py
+++ b/tools/run_perf.py
@@ -534,8 +534,11 @@ class AndroidPlatform(Platform): # pragma: no cover
def PreTests(self, node, path):
suite_dir = os.path.abspath(os.path.dirname(path))
- bench_dir = os.path.join(suite_dir,
- os.path.normpath(os.path.join(*node.path)))
+ if node.path:
+ bench_dir = os.path.join(suite_dir,
+ os.path.normpath(os.path.join(*node.path)))
+ else:
+ bench_dir = suite_dir
self._PushFile(self.shell_dir, node.binary)
if isinstance(node, Runnable):
« 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