def test_01_client_config (self) : log = logging.getLogger( "testCase" ) log.debug(" ") conffile = "%s/pybitclient/client.conf" % (os.getcwd()); self.assertTrue (os.path.isfile(conffile), "could not find %s" % conffile) log.debug("I: reading %s" % (os.path.relpath(conffile, os.getcwd()))) self.options = pybitclient.get_settings(conffile) if not "dry_run" in self.options : msg = "I: asserting dry_run for test cases" log.debug (msg) self.options["dry_run"] = True else : msg = "I: dry_run already set." log.debug(msg)
def __init__(self): try: PackageHandler.__init__(self) # Specific buildd options # FIXME: decide how this is managed and packaged self.options = pybitclient.get_settings(self) if len(self.options) > 0 : dput_opt = self.options["dput"] buildroot = self.options["buildroot"] else : self.options["dry_run"] = True # variables to retrieve from the job object later self.dput_dest = "tcl" self.dput_cfg = "/etc/pybit/client/dput.cf" except Exception as e: raise Exception('Error constructing debian build client: ' + str(e)) return