comparison mozillatry.py @ 8:7423fa8b4343

wrong function name
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 Dec 2012 14:33:04 -0800
parents 51d1167cc684
children 8c8a223e4df2
comparison
equal deleted inserted replaced
7:51d1167cc684 8:7423fa8b4343
90 } 90 }
91 91
92 def __init__(self): 92 def __init__(self):
93 configuration.Configuration.__init__(self, usage=self.usage, load='--config') 93 configuration.Configuration.__init__(self, usage=self.usage, load='--config')
94 94
95 def check(self, config): 95 def validate(self):
96 """check configuration""" 96 """check configuration"""
97 97
98 if (not config.get('opt')) and (not config.get('debug')): 98 configuration.Configuration.validate(self)
99
100 if (not self.config.get('opt')) and (not self.config.get('debug')):
99 raise ConfigurationError("Must have opt or debug builds") 101 raise ConfigurationError("Must have opt or debug builds")
100 102
101 103
102 def read_config(filename, options): 104 def read_config(filename, options):
103 """read .mozutils config file and substitute for options if None""" 105 """read .mozutils config file and substitute for options if None"""