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

Side by Side Diff: scripts/tools/runit.py

Issue 17635005: Make blink_trybot recipe work on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
1 import sys 5 import sys
2 import os 6 import os
3 import subprocess 7 import subprocess
4 8
5 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) 9 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
6 BUILD = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..')) 10 BUILD = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..'))
7 11
8 def main(argv): 12 def main(argv):
9 path = os.environ.get('PYTHONPATH', '') 13 path = os.environ.get('PYTHONPATH', '')
10 path = path.split(':') 14 path = path.split(':')
(...skipping 15 matching lines...) Expand all
26 print 'Set PYTHONPATH: %s' % os.environ['PYTHONPATH'] 30 print 'Set PYTHONPATH: %s' % os.environ['PYTHONPATH']
27 31
28 # Use subprocess instead of execv because otherwise windows destroys quoting. 32 # Use subprocess instead of execv because otherwise windows destroys quoting.
29 p = subprocess.Popen(argv[1:]) 33 p = subprocess.Popen(argv[1:])
30 p.wait() 34 p.wait()
31 return p.returncode 35 return p.returncode
32 36
33 37
34 if __name__ == '__main__': 38 if __name__ == '__main__':
35 sys.exit(main(sys.argv)) 39 sys.exit(main(sys.argv))
OLDNEW
« scripts/slave/recipes/blink_trybot.py ('K') | « scripts/tools/run_recipe.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698