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')
def YumInstall(vm) -> None: """Installs the MPI library.""" intel_repo.YumPrepare(vm) _Install(vm, MPI_VERSION.value)
def YumInstall(vm): """Installs the MKL package on the VM.""" if USE_MKL_REPO.value: intel_repo.YumPrepare(vm) _Install(vm)
def YumInstall(vm): """Installs the HPCC package on the VM.""" if USE_INTEL_COMPILED_HPL.value: intel_repo.YumPrepare(vm) _Install(vm)
def YumInstall(vm): """Installs the MKL package on the VM.""" if UseMklRepo(): intel_repo.YumPrepare(vm) _Install(vm)
def testYumPrepareBadKey(self) -> None: vm = mock.Mock() vm.RemoteCommandWithReturnCode.return_value = ('', '', 1) with self.assertRaises(errors.Setup.InvalidConfigurationError): intel_repo.YumPrepare(vm)