3d5a011a2e
* app: harden update flows This hardens the windows update flows and adds a new opt-in and CI triggered unit test to verify Mac/Windows updates with verification. * test: harden unit tests for OLLAMA_MODELS being set * app: harden updater
12 lines
205 B
Go
12 lines
205 B
Go
package envconfig
|
|
|
|
import "testing"
|
|
|
|
func setTestHome(t *testing.T, home string) {
|
|
t.Helper()
|
|
t.Setenv("HOME", home)
|
|
t.Setenv("USERPROFILE", home)
|
|
t.Setenv("OLLAMA_MODELS", "")
|
|
ReloadServerConfig()
|
|
}
|