def workspace(self, *buildfiles): with temporary_dir() as root_dir: set_buildroot(root_dir) with pushd(root_dir): for buildfile in buildfiles: touch(os.path.join(root_dir, buildfile)) yield os.path.realpath(root_dir)
def setUpClass(cls): cls.build_root = mkdtemp(suffix='_BUILD_ROOT') set_buildroot(cls.build_root) cls._cwd = os.getcwd() os.chdir(cls.build_root) Target._clear_all_addresses()
def setUpClass(cls): cls.build_root = mkdtemp(suffix="_BUILD_ROOT") set_buildroot(cls.build_root) cls._cwd = os.getcwd() os.chdir(cls.build_root) Target._clear_all_addresses()