Beispiel #1
0
 def setUp(self):
     self.tmp_dir = os.path.join(tempfile.gettempdir(), 'r_test')
     self.src_iso = os.path.join(os.path.join(os.getcwd(), 'test'),
                                 'test.iso')
     self.squash_fs = os.path.join(os.path.join(os.getcwd(), 'test'),
                                   'squash_test.squashfs')
     self.test_file = os.path.join(os.path.join(os.getcwd(), 'test'),
                                   'test.txt')
     self.test_dir = os.path.join(os.path.join(os.getcwd(), 'test'),
                                  'test_dir/')
     self.output_file = os.path.join(self.tmp_dir, 'custom.iso')
     self.engine = BuildEngine(distro='ubuntu',
                               arch='x86',
                               working_dir=self.tmp_dir,
                               src_iso_filename=self.src_iso,
                               output_file=self.output_file)
     self.engine.extract_iso()