This reverts commit b328992aac.
This check fails on MacOS CIs. The failure error is:
Evaluation of CheckJavaStyle failed: [Errno 2] No such file or directory: '/<reducted>/src/third_party/jdk/current/bin/java'.
Upstream's DEPS does not check out third_party/jdk on MacOS based on the
condition:
'src/third_party/jdk/current': {
...
# Needed on Linux for use on chromium_presubmit (for checkstyle).
'condition': '(checkout_android or checkout_linux) and non_git_source',
...
This commit is contained in:
+2
-2
@@ -593,8 +593,8 @@ def CheckJavaStyle(_original_check, input_api, output_api):
|
||||
for f in input_api.AffectedFiles()):
|
||||
return []
|
||||
|
||||
# Android toolchain is only available on Linux and MacOS.
|
||||
if not sys.platform.startswith(('linux', 'darwin')):
|
||||
# Android toolchain is only available on Linux.
|
||||
if not sys.platform.startswith('linux'):
|
||||
return []
|
||||
|
||||
with brave_chromium_utils.sys_path('//tools/android/checkstyle'):
|
||||
|
||||
Reference in New Issue
Block a user