diff options
author | Steve Block <steveblock@google.com> | 2010-09-13 16:00:42 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-13 16:00:42 +0100 |
commit | 5c27bc1c64a06ccec64da81bd0217b7aa3592786 (patch) | |
tree | 8acf847989f46d27e19f80e48e10763d080dcbe1 /tests | |
parent | bdebd0621b2a4422a30bea21ea549afd20a9e918 (diff) | |
download | frameworks_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-x | tests/DumpRenderTree2/assets/run_layout_tests.py | 6 |
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 |