예제 #1
0
 def run(self, *args, **kwargs):
     with TemporaryDirectory() as tmpdir:
         self.testdir = Path(tmpdir)
         self.makefile_path = self.testdir / 'Makefile'
         self.source_path = self.testdir / 'hello.source'
         self.target_path = self.testdir / 'hello'
         with self.makefile_path.open('w') as f:
             f.write(self.Makefile)
         with self.source_path.open('w') as f:
             f.write(self.hello_source)
         self.m = Makefile.parse('-C', str(self.testdir))
         super().run(*args, **kwargs)
예제 #2
0
 def run(self, *args, **kwargs):
     with TemporaryDirectory() as tmpdir:
         self.testdir = Path(tmpdir)
         self.m = Makefile.parse('-C', str(self.testdir))
         super().run(*args, **kwargs)