def testTarballGeneration(self):
   """End-to-end test of tarball generation."""
   with mock.patch.object(cros_build_lib, 'IsInsideChroot'):
     cros_build_lib.IsInsideChroot.returnvalue = True
     cros_gen.main(
         ['--board', BOARD, '--out-dir', self.tempdir,
          '--out-file', TAR_NAME, '--package', constants.CHROME_CP])
     self.cg_mock.VerifyTarball(os.path.join(self.tempdir, TAR_NAME))
Ejemplo n.º 2
0
 def testTarballGeneration(self):
   """End-to-end test of tarball generation."""
   with mock.patch.object(cros_build_lib, 'IsInsideChroot'):
     cros_build_lib.IsInsideChroot.returnvalue = True
     cros_gen.main(
         ['--board', BOARD, '--out-dir', self.tempdir,
          '--out-file', TAR_NAME, '--package', constants.CHROME_CP])
     self.cg_mock.VerifyTarball(os.path.join(self.tempdir, TAR_NAME))