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

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

Issue 27502002: Android perf tests: only store the retry results if it's better. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 7 years, 2 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 | « no previous file | build/android/pylib/perf/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/setup.py
diff --git a/build/android/pylib/perf/setup.py b/build/android/pylib/perf/setup.py
index 74bf79fdd6dcedd8f0222fcd88e539fec5852d02..39e50980d9eedfbc8bdb8606471ddbde05dead19 100644
--- a/build/android/pylib/perf/setup.py
+++ b/build/android/pylib/perf/setup.py
@@ -10,6 +10,7 @@ import logging
import os
import psutil
import signal
+import shutil
import time
from pylib import android_commands
@@ -58,8 +59,9 @@ def Setup(test_options):
Returns:
A tuple of (TestRunnerFactory, tests).
"""
- if not os.path.exists(constants.PERF_OUTPUT_DIR):
- os.makedirs(constants.PERF_OUTPUT_DIR)
+ if os.path.exists(constants.PERF_OUTPUT_DIR):
+ shutil.rmtree(constants.PERF_OUTPUT_DIR)
+ os.makedirs(constants.PERF_OUTPUT_DIR)
# Before running the tests, kill any leftover server.
_KillPendingServers()
« no previous file with comments | « no previous file | build/android/pylib/perf/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698