Example #1
0
 def extract_base_tarball(self):
     suite = self.suitecursor.get_base_suite(self._suite)
     fstype = self.cfg.get('umlmachines', 'backup_filesystem')
     if fstype == 'hostfs':
         #backup_path = path(self.cfg.get('umlmachines', 'hostfs_backup_path')).expand()
         backup_path = path(self.options['hostfs_backup_path'].value)
     else:
         backup_path = path('/mnt')
     basetarball = backup_path / path('%s.base.tar.gz' % suite)
     if not basetarball.isfile():
         basetarball = backup_path / path('%s.base.tar' % suite)
     if basetarball.isfile():
         extract_tarball(self.target, basetarball)
     else:
         raise RuntimeError, 'No base tarball found for suite %s' % suite
Example #2
0
 def extract_base_tarball(self):
     suite = self.suitecursor.get_base_suite(self._suite)
     fstype = self.cfg.get('umlmachines', 'backup_filesystem')
     if fstype == 'hostfs':
         #backup_path = path(self.cfg.get('umlmachines', 'hostfs_backup_path')).expand()
         backup_path = path(self.options['hostfs_backup_path'].value)
     else:
         backup_path = path('/mnt')
     basetarball = backup_path / path('%s.base.tar.gz' % suite)
     if not basetarball.isfile():
         basetarball = backup_path / path('%s.base.tar' % suite)
     if basetarball.isfile():
         extract_tarball(self.target, basetarball)
     else:
         raise RuntimeError, 'No base tarball found for suite %s' % suite
Example #3
0
 def extract_root_tarball(self, basetarball):
     extract_tarball(self.target, basetarball)
Example #4
0
 def extract_root_tarball(self, basetarball):
     extract_tarball(self.target, basetarball)