fuzzyworld

template / commit

Build now passes in Windows, hopefully this will work with CI as well.

9b0177beeb3a8bfe3532e82afe7657c0605f61e9 · Pavel Safronov · 2022-11-18 23:17:51 -0800 · parents 1993289f7272

Build now passes in Windows, hopefully this will work with CI as well.
 .gitignore      | 2 ++
 Makefile        | 7 +++----
 profile_test.go | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 2bd0841..8582cfa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@ dist
 template.exe
 template
 test
+test-coverage.out
+test-coverage.html
diff --git a/Makefile b/Makefile
index 9201aa9..ae48184 100644
--- a/Makefile
+++ b/Makefile
@@ -13,14 +13,13 @@ lint: build
 	golangci-lint run
 
 test: build
-	mkdir -p test
-	go test -v ./... -coverprofile="./test/coverage.out"
+	go test -v ./... -coverprofile="./test-coverage.out"
 
 test_coverage: test
-	go tool cover -html="./test/coverage.out" -o "./test/coverage.html"
+	go tool cover -html="./test-coverage.out" -o "./test-coverage.html"
 
 test_coverage_html: test_coverage
-	open "./test/coverage.html"
+	open "./test-coverage.html"
 
 install: build test lint
 	go install
diff --git a/profile_test.go b/profile_test.go
index d276b89..5245457 100644
--- a/profile_test.go
+++ b/profile_test.go
@@ -352,7 +352,7 @@ func getCurrentOs() OSType {
 	}
 }
 func getOtherOs(currentOs OSType) OSType {
-	if currentOs == "windows" {
+	if currentOs == "Windows" {
 		return "Mac"
 	}
 	return "Windows"