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

Side by Side Diff: build/has_valgrind.py

Issue 1700673002: [Swarming] Isolate valgrind runner. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2016 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7
8 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9 VALGRIND_DIR = os.path.join(BASE_DIR, 'third_party', 'valgrind')
10 LINUX32_DIR = os.path.join(VALGRIND_DIR, 'linux_x86')
11 LINUX64_DIR = os.path.join(VALGRIND_DIR, 'linux_x64')
12
kjellander_chromium 2016/02/15 08:48:28 two blank lines before top-level function
Michael Achenbach 2016/02/15 09:55:45 Done.
13 def DoMain(_):
kjellander_chromium 2016/02/15 08:48:28 name this main(_): https://google.github.io/style
Michael Achenbach 2016/02/15 09:55:45 Won't work. This is not the python main function b
kjellander_chromium 2016/02/15 11:49:26 Ah, I didn't pay attention to (or knew about) that
14 """Hook to be called from gyp without starting a separate python
15 interpreter."""
16 return int(os.path.exists(LINUX32_DIR) and os.path.exists(LINUX64_DIR))
17
kjellander_chromium 2016/02/15 08:48:28 +1 blank line
Michael Achenbach 2016/02/15 09:55:45 Done.
18 if __name__ == '__main__':
19 print DoMain([])
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | build/isolate.gypi » ('j') | tools/run-valgrind.isolate » ('J')

Powered by Google App Engine
This is Rietveld 408576698