def testVerifyBinpkgPresent(self):
   """Test case where binpkg is present."""
   self.rc.AddCmdResult(
       partial_mock.ListRegex(r'emerge'),
       output='\n[binary] %s' % constants.CHROME_CP)
   commands.VerifyBinpkg(self._buildroot, self._board, constants.CHROME_CP,
                         packages=())
예제 #2
0
 def VerifyChromeBinpkg(self, packages):
     # Sanity check: If we didn't check out Chrome (and we're running on ToT),
     # we should be building Chrome from a binary package.
     if (not self._run.options.managed_chrome
             and self._run.manifest_branch == 'master'):
         commands.VerifyBinpkg(self._build_root,
                               self._current_board,
                               constants.CHROME_CP,
                               packages,
                               extra_env=self._portage_extra_env)
 def testVerifyChromeNotInstalled(self):
   """Test case where Chrome is not installed at all."""
   commands.VerifyBinpkg(self._buildroot, self._board, constants.CHROME_CP,
                         packages=())