ensure tests can use EPINIO_CONFIG env variable
@@ -62,9 +62,13 @@ func EpinioBinaryPath() string {
// EpinioYAML returns the absolute path to the epinio config YAML
func EpinioYAML() string {
+ if os.Getenv("EPINIO_CONFIG") == "" {
return os.ExpandEnv("${HOME}/.config/epinio/config.yaml")
}
+ return os.Getenv("EPINIO_CONFIG")
+}
+
// BuildEpinio builds the epinio binaries for the server and if platforms are different also for the CLI
func BuildEpinio() {
targets := []string{"embed_files", "build-linux-amd64"}
