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

Side by Side Diff: test/masters_cfg_test.py

Issue 14383021: Break config_default into master_site_configs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebase Created 7 years, 7 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2012 The Chromium Authors. All rights reserved. 2 # Copyright 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 """Tests all master.cfgs to make sure they load properly.""" 6 """Tests all master.cfgs to make sure they load properly."""
7 7
8 import multiprocessing 8 import multiprocessing
9 import os 9 import os
10 import sys 10 import sys
11 11
12 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 12 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
13 sys.path.insert(0, os.path.join(BASE_DIR, 'scripts')) 13 sys.path.insert(0, os.path.join(BASE_DIR, 'scripts'))
14 14
15 import masters_util 15 import masters_util
16 16
17 from common import chromium_utils 17 from common import chromium_utils
18 from common import master_cfg_utils 18 from common import master_cfg_utils
19 19
20 20
21 # Masters which do not currently load from the default configuration. These need 21 # Masters which do not currently load from the default configuration. These need
22 # to be fixed and removed from the list! 22 # to be fixed and removed from the list!
23 BLACKLIST = set(['chromium.swarm', 23 BLACKLIST = set(['chromium.swarm',
24 'chromium.chromebot', 24 'chromium.chromebot',
25 'chromiumos.tryserver', 25 'client.nacl.chrome'
26 'client.nacl.chrome']) 26 ])
27 27
28 28
29 def TestMaster(args): 29 def TestMaster(args):
30 mastername, path = args 30 mastername, path = args
31 apply_issue_pwd_path = os.path.join(path, '.apply_issue_password') 31 apply_issue_pwd_path = os.path.join(path, '.apply_issue_password')
32 with masters_util.temporary_password(apply_issue_pwd_path): 32 with masters_util.temporary_password(apply_issue_pwd_path):
33 cmd = [sys.executable, 33 cmd = [sys.executable,
34 os.path.join(BASE_DIR, 'scripts', 'slave', 'runbuild.py'), 34 os.path.join(BASE_DIR, 'scripts', 'slave', 'runbuild.py'),
35 mastername, 35 mastername,
36 '--test-config'] 36 '--test-config']
(...skipping 30 matching lines...) Expand all
67 for mastername, path in failures: 67 for mastername, path in failures:
68 print ' %s: %s' % (mastername, path) 68 print ' %s: %s' % (mastername, path)
69 return 1 69 return 1
70 70
71 print 'All master.cfg files parsed successfully!' 71 print 'All master.cfg files parsed successfully!'
72 return 0 72 return 0
73 73
74 74
75 if __name__ == '__main__': 75 if __name__ == '__main__':
76 sys.exit(main()) 76 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698