mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-14 17:45:36 +00:00
16 lines
284 B
Go
16 lines
284 B
Go
package helpers
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/garethgeorge/backrest/internal/resticinstaller"
|
|
)
|
|
|
|
func ResticBinary(t testing.TB) string {
|
|
binPath, err := resticinstaller.FindOrInstallResticBinary()
|
|
if err != nil {
|
|
t.Fatalf("find restic binary: %v", err)
|
|
}
|
|
return binPath
|
|
}
|