Skip to content

Commit 82d53ce

Browse files
guang-googleAndroid (Google) Code Review
authored andcommitted
Merge "fix sdcard path for webkit perf and layout test scripts" into jb-mr1-dev
2 parents 2284c36 + 8aaa32b commit 82d53ce

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

tests/DumpRenderTree/assets/run_layout_tests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def DumpRenderTreeFinished(adb_cmd):
5858
"""
5959

6060
# pull /sdcard/webkit/running_test.txt, if the content is "#DONE", it's done
61-
shell_cmd_str = adb_cmd + " shell cat /sdcard/webkit/running_test.txt"
61+
shell_cmd_str = adb_cmd + " shell cat /sdcard/0/webkit/running_test.txt"
6262
adb_output = subprocess.Popen(shell_cmd_str, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
6363
return adb_output.strip() == "#DONE"
6464

@@ -207,7 +207,7 @@ def main(options, args):
207207
# Get the running_test.txt
208208
logging.error("DumpRenderTree crashed, output:\n" + adb_output)
209209

210-
shell_cmd_str = adb_cmd + " shell cat /sdcard/webkit/running_test.txt"
210+
shell_cmd_str = adb_cmd + " shell cat /sdcard/0/webkit/running_test.txt"
211211
crashed_test = ""
212212
while not crashed_test:
213213
(crashed_test, err) = subprocess.Popen(
@@ -244,10 +244,10 @@ def main(options, args):
244244
logging.error("Cannot create results dir: " + results_dir);
245245
sys.exit(1);
246246

247-
result_files = ["/sdcard/layout_tests_passed.txt",
248-
"/sdcard/layout_tests_failed.txt",
249-
"/sdcard/layout_tests_ignored.txt",
250-
"/sdcard/layout_tests_nontext.txt"]
247+
result_files = ["/sdcard/0/layout_tests_passed.txt",
248+
"/sdcard/0/layout_tests_failed.txt",
249+
"/sdcard/0/layout_tests_ignored.txt",
250+
"/sdcard/0/layout_tests_nontext.txt"]
251251
for file in result_files:
252252
shell_cmd_str = adb_cmd + " pull " + file + " " + results_dir
253253
adb_output = subprocess.Popen(shell_cmd_str, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]

tests/DumpRenderTree/assets/run_page_cycler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def main(options, args):
8585

8686
run_load_test_cmd += run_load_test_cmd_postfix
8787

88+
print run_load_test_cmd
89+
8890
(adb_output, adb_error) = subprocess.Popen(run_load_test_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
8991
fail_flag = False
9092
for line in adb_output.splitlines():
@@ -113,7 +115,7 @@ def main(options, args):
113115
logging.error("Cannot create results dir: " + results_dir)
114116
sys.exit(1)
115117

116-
result_file = "/sdcard/load_test_result.txt"
118+
result_file = "/sdcard/0/load_test_result.txt"
117119
shell_cmd_str = adb_cmd + " pull " + result_file + " " + results_dir
118120
(adb_output, err) = subprocess.Popen(
119121
shell_cmd_str, shell=True,

0 commit comments

Comments
 (0)