summaryrefslogtreecommitdiffstats
path: root/tests/DumpRenderTree2/assets
diff options
context:
space:
mode:
authorPhilippe Marti <philmarti@google.com>2010-12-17 14:49:19 +0000
committerBen Murdoch <benm@google.com>2011-01-13 14:16:20 +0000
commit84cc2dbb1d9f935182fcbeb1ef68dc340d2ebade (patch)
tree547620b424e1d8ae2de0fe4eefa44599a379be38 /tests/DumpRenderTree2/assets
parent96100195f06d9be287f2577a41f498917b34f7ef (diff)
downloadframeworks_base-84cc2dbb1d9f935182fcbeb1ef68dc340d2ebade.zip
frameworks_base-84cc2dbb1d9f935182fcbeb1ef68dc340d2ebade.tar.gz
frameworks_base-84cc2dbb1d9f935182fcbeb1ef68dc340d2ebade.tar.bz2
Improve error handling (NPE in DRT2)
Bug: 3284126 Change-Id: I7f8c6259f2932d2b1a10a2f9612866786d425da9
Diffstat (limited to 'tests/DumpRenderTree2/assets')
-rwxr-xr-xtests/DumpRenderTree2/assets/run_layout_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/DumpRenderTree2/assets/run_layout_tests.py b/tests/DumpRenderTree2/assets/run_layout_tests.py
index 0dfd229..3b8c09a 100755
--- a/tests/DumpRenderTree2/assets/run_layout_tests.py
+++ b/tests/DumpRenderTree2/assets/run_layout_tests.py
@@ -42,6 +42,7 @@ def main(path, options):
cmd += "-w com.android.dumprendertree2/com.android.dumprendertree2.scriptsupport.ScriptTestRunner"
logging.info("Running the tests...")
+ logging.debug("Command = %s" % cmd)
(stdoutdata, stderrdata) = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
if re.search("^INSTRUMENTATION_STATUS_CODE: -1", stdoutdata, re.MULTILINE) != None:
logging.info("Failed to run the tests. Is DumpRenderTree2 installed on the device?")