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

Side by Side Diff: tools/gcmole/run-gcmole.py

Issue 1700963003: [Swarming] Make gcmole wrapper cwd-independent. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 the V8 project authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 9
10 GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__)) 10 GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__))
11 CLANG_BIN = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'bin') 11 CLANG_BIN = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'bin')
12 CLANG_PLUGINS = os.path.join(GCMOLE_PATH, 'gcmole-tools') 12 CLANG_PLUGINS = os.path.join(GCMOLE_PATH, 'gcmole-tools')
13 LUA = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'lua52') 13 LUA = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'lua52')
14 DRIVER = os.path.join(GCMOLE_PATH, 'gcmole.lua') 14 DRIVER = os.path.join(GCMOLE_PATH, 'gcmole.lua')
15 BASE_PATH = os.path.dirname(os.path.dirname(GCMOLE_PATH))
15 16
16 assert len(sys.argv) == 2 17 assert len(sys.argv) == 2
17 18
18 sys.exit(subprocess.call( 19 sys.exit(subprocess.call(
19 [LUA, DRIVER, sys.argv[1]], 20 [LUA, DRIVER, sys.argv[1]],
20 env={'CLANG_BIN': CLANG_BIN, 'CLANG_PLUGINS': CLANG_PLUGINS}, 21 env={'CLANG_BIN': CLANG_BIN, 'CLANG_PLUGINS': CLANG_PLUGINS},
22 cwd=BASE_PATH,
21 )) 23 ))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698