OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium 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 """ Initialize the environment variables and start the buildbot slave. | 6 """ Initialize the environment variables and start the buildbot slave. |
7 """ | 7 """ |
8 | 8 |
9 import os | 9 import os |
10 import shutil | 10 import shutil |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 # Platform-specific initialization. | 347 # Platform-specific initialization. |
348 | 348 |
349 if sys.platform.startswith('win'): | 349 if sys.platform.startswith('win'): |
350 # list of all variables that we want to keep | 350 # list of all variables that we want to keep |
351 env_var = [ | 351 env_var = [ |
352 'APPDATA', | 352 'APPDATA', |
353 'BUILDBOT_ARCHIVE_FORCE_SSH', | 353 'BUILDBOT_ARCHIVE_FORCE_SSH', |
354 'CHROME_HEADLESS', | 354 'CHROME_HEADLESS', |
355 'CHROMIUM_BUILD', | 355 'CHROMIUM_BUILD', |
| 356 'COMMONPROGRAMFILES', |
| 357 'COMMONPROGRAMFILES(X86)', |
| 358 'COMMONPROGRAMW6432', |
356 'COMSPEC', | 359 'COMSPEC', |
357 'COMPUTERNAME', | 360 'COMPUTERNAME', |
358 'DBUS_SESSION_BUS_ADDRESS', | 361 'DBUS_SESSION_BUS_ADDRESS', |
359 'DXSDK_DIR', | 362 'DXSDK_DIR', |
360 'HOMEDRIVE', | 363 'HOMEDRIVE', |
361 'HOMEPATH', | 364 'HOMEPATH', |
362 'LOCALAPPDATA', | 365 'LOCALAPPDATA', |
363 'NUMBER_OF_PROCESSORS', | 366 'NUMBER_OF_PROCESSORS', |
364 'OS', | 367 'OS', |
365 'PATH', | 368 'PATH', |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 if skip_sync_arg not in sys.argv: | 487 if skip_sync_arg not in sys.argv: |
485 UseBotoPath() | 488 UseBotoPath() |
486 if subprocess.call([GetGClientPath(), 'sync', '--force']) != 0: | 489 if subprocess.call([GetGClientPath(), 'sync', '--force']) != 0: |
487 print >> sys.stderr, ( | 490 print >> sys.stderr, ( |
488 '(%s) `gclient sync` failed; proceeding anyway...' % sys.argv[0]) | 491 '(%s) `gclient sync` failed; proceeding anyway...' % sys.argv[0]) |
489 os.execv(sys.executable, [sys.executable] + sys.argv + [skip_sync_arg]) | 492 os.execv(sys.executable, [sys.executable] + sys.argv + [skip_sync_arg]) |
490 | 493 |
491 # Remove skip_sync_arg from arg list. Needed because twistd. | 494 # Remove skip_sync_arg from arg list. Needed because twistd. |
492 sys.argv.remove(skip_sync_arg) | 495 sys.argv.remove(skip_sync_arg) |
493 main() | 496 main() |
OLD | NEW |