(silent bool)
| 1254 | } |
| 1255 | |
| 1256 | func (m *MOFED) runValidation(silent bool) error { |
| 1257 | // check for mlx5_core module to be loaded |
| 1258 | command := shell |
| 1259 | args := []string{"-c", "lsmod | grep mlx5_core"} |
| 1260 | |
| 1261 | // If MOFED container is running then use readiness flag set by the driver container instead |
| 1262 | if os.Getenv(UseHostMOFEDEnvname) != "true" { |
| 1263 | args = []string{"-c", "stat /run/mellanox/drivers/.driver-ready"} |
| 1264 | } |
| 1265 | if withWaitFlag { |
| 1266 | return runCommandWithWait(command, args, sleepIntervalSecondsFlag, silent) |
| 1267 | } |
| 1268 | return runCommand(command, args, silent) |
| 1269 | } |
| 1270 | |
| 1271 | func (m *MOFED) setKubeClient(kubeClient kubernetes.Interface) { |
| 1272 | m.kubeClient = kubeClient |
no test coverage detected