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

Side by Side Diff: build/android/test_package.py

Issue 8667008: Fix python scripts in src/build/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 3 # found in the LICENSE file.
5 4
6 5
7 import logging 6 import logging
8 import re 7 import re
9 import os 8 import os
10 import pexpect 9 import pexpect
11 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 if not self.rebaseline and ready_to_continue: 157 if not self.rebaseline and ready_to_continue:
159 ok_tests += self._EndGetIOStats(io_stats_before) 158 ok_tests += self._EndGetIOStats(io_stats_before)
160 ret_code = self._GetGTestReturnCode() 159 ret_code = self._GetGTestReturnCode()
161 if ret_code: 160 if ret_code:
162 failed_tests += [BaseTestResult('gtest exit code: %d' % ret_code, 161 failed_tests += [BaseTestResult('gtest exit code: %d' % ret_code,
163 'pexpect.before: %s' 162 'pexpect.before: %s'
164 '\npexpect.after: %s' 163 '\npexpect.after: %s'
165 % (p.before, 164 % (p.before,
166 p.after))] 165 p.after))]
167 return TestResults.FromOkAndFailed(ok_tests, failed_tests) 166 return TestResults.FromOkAndFailed(ok_tests, failed_tests)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698