Index: build/android/pylib/gtest/test_package_exe.py |
diff --git a/build/android/pylib/gtest/test_package_exe.py b/build/android/pylib/gtest/test_package_exe.py |
index 69a7b07524c032b63ee4c5be0adcdd9c1b08002b..2fc1005d5b11e04cadcf31b1c6bd52d0f5485ee2 100644 |
--- a/build/android/pylib/gtest/test_package_exe.py |
+++ b/build/android/pylib/gtest/test_package_exe.py |
@@ -123,19 +123,17 @@ class TestPackageExecutable(TestPackage): |
else: |
target_name = self.suite_path + '_stripped' |
if not os.path.isfile(target_name): |
- logging.critical('Did not find %s, build target %s', |
- target_name, self.suite_name + '_stripped') |
- sys.exit(1) |
+ raise Exception('Did not find %s, build target %s' % |
+ (target_name, self.suite_name + '_stripped')) |
target_mtime = os.stat(target_name).st_mtime |
source_mtime = os.stat(self.suite_path).st_mtime |
if target_mtime < source_mtime: |
- logging.critical( |
+ raise Exception( |
'stripped binary (%s, timestamp %d) older than ' |
- 'source binary (%s, timestamp %d), build target %s', |
- target_name, target_mtime, self.suite_path, source_mtime, |
- self.suite_name + '_stripped') |
- sys.exit(1) |
+ 'source binary (%s, timestamp %d), build target %s' % |
+ (target_name, target_mtime, self.suite_path, source_mtime, |
+ self.suite_name + '_stripped')) |
test_binary = constants.TEST_EXECUTABLE_DIR + '/' + self.suite_name |
adb.PushIfNeeded(target_name, test_binary) |