Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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()
Esempio n. 4
0
 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()