예제 #1
0
 def testYumPrepare(self) -> None:
   vm = mock.Mock()
   vm.RemoteCommandWithReturnCode.return_value = ('', '', 0)
   intel_repo.YumPrepare(vm)
   vm.PushDataFile.assert_called_with('intel_repo_key.txt',
                                      '/tmp/pkb/intel_repo_key.txt')
   vm.InstallPackages.assert_called_with('yum-utils')
   vm.RemoteCommandWithReturnCode.assert_called_with(
       'diff /tmp/pkb/intel_repo_key.txt /tmp/pkb/mpi.yumkey')
예제 #2
0
def YumInstall(vm) -> None:
  """Installs the MPI library."""
  intel_repo.YumPrepare(vm)
  _Install(vm, MPI_VERSION.value)
예제 #3
0
def YumInstall(vm):
    """Installs the MKL package on the VM."""
    if USE_MKL_REPO.value:
        intel_repo.YumPrepare(vm)
    _Install(vm)
예제 #4
0
def YumInstall(vm):
    """Installs the HPCC package on the VM."""
    if USE_INTEL_COMPILED_HPL.value:
        intel_repo.YumPrepare(vm)
    _Install(vm)
예제 #5
0
def YumInstall(vm):
    """Installs the MKL package on the VM."""
    if UseMklRepo():
        intel_repo.YumPrepare(vm)
    _Install(vm)
예제 #6
0
 def testYumPrepareBadKey(self) -> None:
   vm = mock.Mock()
   vm.RemoteCommandWithReturnCode.return_value = ('', '', 1)
   with self.assertRaises(errors.Setup.InvalidConfigurationError):
     intel_repo.YumPrepare(vm)