INNER CODE UNIT · Go
cleanupTraditionalWindowsEnv
ddev/ddev · winpkg/installer_test.go:790
func cleanupTraditionalWindowsEnv(t *testing.T) {
t.Logf("Cleaning up Traditional Windows environment")
// Use full path since the current process doesn't see the PATH update from the installer
localAppData := os.Getenv("LOCALAPPDATA")
ddevPath := filepath.Join(localAppData, "Programs", "DDEV", "ddev.exe")
// Stop any running DDEV projects (ignore errors if ddev not installed)
if fileutil.FileExists(ddevPath) {
_, _ = exec.RunHostCommand(ddevPath, "poweroff")
}
}
// testDdevTraditionalInstallation verifies that ddev is properly installed on Windows
func testDdevTraditionalInstallation(t *testing.T) {
require := require.New(t)
t.Logf("Testing ddev installation on Windows")