def __init__(self, *args, **kwargs): TempDirMixin.__init__(self, *args, **kwargs) TestCase.__init__(self, *args, **kwargs) # default files self.make_globals = {} load_make_conf( self.make_globals, pjoin(const.CONFIG_PATH, 'make.globals')) self.global_repos_defaults, self.global_repos_conf = load_repos_conf( pjoin(const.CONFIG_PATH, 'repos.conf'))
def __init__(self, *args, **kwargs): TempDirMixin.__init__(self, *args, **kwargs) TestCase.__init__(self, *args, **kwargs) # default files self.make_globals = {} load_make_conf(self.make_globals, pjoin(const.CONFIG_PATH, 'make.globals')) self.global_repos_defaults, self.global_repos_conf = load_repos_conf( pjoin(const.CONFIG_PATH, 'repos.conf'))
def __init__(self, *a, **kw): TestCase.__init__(self, *a, **kw) self.files = map(self.mk_file, ["/etc/blah", "/etc/foo", "/etc/dar", "/tmp/dar", "/tmp/blah/foo/long/ass/file/name/but/not/that/bad/really"]) self.dirs = map(self.mk_dir, ["/tmp", "/blah", "/tmp/dar", "/usr/", "/usr/bin"]) self.links = [fs.fsLink(x, os.path.dirname(x), strict=False) for x in ["/tmp/foo", "/usr/X11R6/lib", "/nagga/noo"]] self.devs = map(self.mk_dev, [pjoin("dev", x) for x in ["sda1", "hda", "hda2", "disks/ide1"]]) self.fifos = map(self.mk_fifo, [pjoin("tmp", y) for y in ("dar", "boo", "bah")]) self.all = self.dirs + self.links + self.devs + self.fifos