diff --git a/.github/workflows/go-test-windows.yaml b/.github/workflows/go-test-windows.yaml index 486b51b..f839e06 100644 --- a/.github/workflows/go-test-windows.yaml +++ b/.github/workflows/go-test-windows.yaml @@ -52,9 +52,7 @@ jobs: run: mkdir "C:\Temp\sqlite" && copy testdata/sqlite/G2C.db "C:\Temp\sqlite\G2C.db" - name: Run go test without SENZING_PATH environment variable set - run: | - go test -json -v -p 1 -coverprofile=cover -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "C:\Temp\gotest.log" | gotestfmt - cp cover cover.out + run: go test -json -v -p 1 ./... 2>&1 | tee "C:\Temp\gotest.log" | gotestfmt - name: Set environment variable run: | diff --git a/settings/settings.go b/settings/settings.go index 5f5acd6..69a8d4a 100644 --- a/settings/settings.go +++ b/settings/settings.go @@ -90,10 +90,7 @@ func BuildSimpleSettingsUsingMap(attributeMap map[string]string) (string, error) senzingPath, isSet := os.LookupEnv("SENZING_PATH") if isSet { - fmt.Printf(">>>>>> Found SENZING_PATH: %s\n", senzingPath) attributeMap["senzingPath"] = senzingPath - } else { - fmt.Println(">>>>>> Did not find SENZING_PATH") } // Add database URL. @@ -317,9 +314,7 @@ func buildStruct(attributeMap map[string]string) SzConfiguration { if !ok { return result } - senzingDirectory := getSenzingDirectory(attributeMap) - fmt.Printf(">>>>>> senzingDirectory: %s\n", senzingDirectory) // Apply attributeMap. diff --git a/settings/settings_windows.go b/settings/settings_windows.go index 433383f..7c521f0 100644 --- a/settings/settings_windows.go +++ b/settings/settings_windows.go @@ -23,19 +23,12 @@ func getResourcePath(senzingDirectory string) string { func getSenzingDirectory(attributeMap map[string]string) string { result := `C:\Program Files\senzing\er` homeDrive, isHomeDriveSet := os.LookupEnv("HOMEDRIVE") - - fmt.Printf(">>>>>> HOMEDRIVE: %s\n", homeDrive) - homePath, isHomeDirSet := os.LookupEnv("HOMEPATH") - - fmt.Printf(">>>>>> HOMEPATH: %s\n", homePath) - if isHomeDriveSet && isHomeDirSet { result = fmt.Sprintf("%s%s\\Senzing", homeDrive, homePath) } senzingPath, ok := attributeMap["senzingPath"] if ok { - fmt.Printf(">>>>>> Using SENZING_PATH: %s\n", senzingPath) result = senzingPath } return result