summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-09-13 16:00:42 +0100
committerSteve Block <steveblock@google.com>2010-09-13 16:00:42 +0100
commit5c27bc1c64a06ccec64da81bd0217b7aa3592786 (patch)
tree8acf847989f46d27e19f80e48e10763d080dcbe1 /tests
parentbdebd0621b2a4422a30bea21ea549afd20a9e918 (diff)
downloadframeworks_base-5c27bc1c64a06ccec64da81bd0217b7aa3592786.zip
frameworks_base-5c27bc1c64a06ccec64da81bd0217b7aa3592786.tar.gz
frameworks_base-5c27bc1c64a06ccec64da81bd0217b7aa3592786.tar.bz2
When running DumpRenderTree2 from script, remove old results files
This makes sure that should we fail to get a new results file from the device, we won't ever show an old results file to the user. Change-Id: Ib00ae391a6b2b43a336370ef23af2d6c95589918
Diffstat (limited to 'tests')
-rwxr-xr-xtests/DumpRenderTree2/assets/run_layout_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/DumpRenderTree2/assets/run_layout_tests.py b/tests/DumpRenderTree2/assets/run_layout_tests.py
index 83ee7e9..bd6e457 100755
--- a/tests/DumpRenderTree2/assets/run_layout_tests.py
+++ b/tests/DumpRenderTree2/assets/run_layout_tests.py
@@ -44,12 +44,14 @@ def main():
# Download the txt summary to tmp folder
summary_txt_tmp_path = os.path.join(tmpdir, SUMMARY_TXT)
- cmd = "adb pull " + RESULTS_ABSOLUTE_PATH + SUMMARY_TXT + " " + summary_txt_tmp_path
+ cmd = "rm -f " + summary_txt_tmp_path + ";"
+ cmd += "adb pull " + RESULTS_ABSOLUTE_PATH + SUMMARY_TXT + " " + summary_txt_tmp_path
subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
# Download the html summary to tmp folder
details_html_tmp_path = os.path.join(tmpdir, DETAILS_HTML)
- cmd = "adb pull " + RESULTS_ABSOLUTE_PATH + DETAILS_HTML + " " + details_html_tmp_path
+ cmd = "rm -f " + details_html_tmp_path + ";"
+ cmd += "adb pull " + RESULTS_ABSOLUTE_PATH + DETAILS_HTML + " " + details_html_tmp_path
subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
# Print summary to console