(shimPath string)
| 184 | } |
| 185 | |
| 186 | func copyShim(shimPath string) (string, error) { |
| 187 | tempPath := filepath.Join(os.TempDir(), filepath.Base(shimPath)) |
| 188 | if err := fs.CopyFile(tempPath, shimPath); err != nil { |
| 189 | return "", err |
| 190 | } |
| 191 | |
| 192 | fi, err := os.Stat(shimPath) |
| 193 | if err != nil { |
| 194 | return "", err |
| 195 | } |
| 196 | if err := os.Chmod(tempPath, fi.Mode().Perm()); err != nil { |
| 197 | return "", err |
| 198 | } |
| 199 | |
| 200 | return tempPath, nil |
| 201 | } |
| 202 | |
| 203 | func TestContainerStartWithAbsRuntimePath(t *testing.T) { |
| 204 | t.Parallel() |
no test coverage detected
searching dependent graphs…