mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-22 14:04:53 -04:00
go: remove redefinitions of builtins
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
6c4ebe12f3
commit
bad05321a0
2 changed files with 5 additions and 5 deletions
|
@ -34,7 +34,7 @@ func teardown(devicePath string) {
|
|||
_ = exec.Command("/bin/rm", "-f", devicePath).Run()
|
||||
}
|
||||
|
||||
func copy(source, target string) error {
|
||||
func cp(source, target string) error {
|
||||
return exec.Command("cp", source, target).Run()
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ func TestDeviceCloning(t *testing.T) {
|
|||
_, err := mapper.OpenCryptDevice(context.Background(), DevicePath, DeviceName, false)
|
||||
assert.NoError(err)
|
||||
|
||||
require.NoError(copy(DevicePath, DevicePath+"-copy"))
|
||||
require.NoError(cp(DevicePath, DevicePath+"-copy"))
|
||||
defer teardown(DevicePath + "-copy")
|
||||
|
||||
_, err = mapper.OpenCryptDevice(context.Background(), DevicePath+"-copy", DeviceName+"-copy", false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue