comparison mozillatry.py @ 40:efb29cff39a7

hopefully fix platforms issue
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 09 Jan 2013 15:21:54 -0800
parents 0895e61753d1
children 3a78de4d900d
comparison
equal deleted inserted replaced
39:0895e61753d1 40:efb29cff39a7
165 165
166 try_directory = self.config.get('mozilla_central') 166 try_directory = self.config.get('mozilla_central')
167 if (try_directory is None) or (not os.path.exists(try_directory)): 167 if (try_directory is None) or (not os.path.exists(try_directory)):
168 raise ConfigurationError("mozilla-central directory does not exist: %s" % try_directory) 168 raise ConfigurationError("mozilla-central directory does not exist: %s" % try_directory)
169 169
170 if not self.config.get('platforms'):
171 self.config['platforms'] = ['all']
172
170 def configuration_files(self, options, args): 173 def configuration_files(self, options, args):
171 configuration_files = configuration.Configuration.configuration_files(self, options, args) 174 configuration_files = configuration.Configuration.configuration_files(self, options, args)
172 if not configuration_files: 175 if not configuration_files:
173 default_config = os.path.expanduser(self.default_config_file) 176 default_config = os.path.expanduser(self.default_config_file)
174 if os.path.exists(default_config): 177 if os.path.exists(default_config):
186 ### methods for try on mozilla-central 189 ### methods for try on mozilla-central
187 190
188 def try_syntax(self): 191 def try_syntax(self):
189 return try_syntax(opt=self.config.get('opt'), 192 return try_syntax(opt=self.config.get('opt'),
190 debug=self.config.get('debug'), 193 debug=self.config.get('debug'),
194 platforms=self.config.get('platforms'),
191 unittests=self.config.get('unittests', []), 195 unittests=self.config.get('unittests', []),
192 talos=self.config.get('talostests', []), 196 talos=self.config.get('talostests', []),
193 bug=self.config.get('bug')) 197 bug=self.config.get('bug'))
194 198
195 def push_to_try(self, patches, commit=None, repo=None): 199 def push_to_try(self, patches, commit=None, repo=None):