aports/community/step-cli/01-fix-tests.patch
Dermot Bradley 2bd35ab8a4 community/step-cli: upgrade to 0.23.0
Upgrade to latest version.

Fix tests, gotestsum needs to be build as of 0.23.0.
2022-12-04 08:06:46 +00:00

23 lines
707 B
Diff

From: Dermot Bradley <dermot_bradley@yahoo.com>
Date: Sat, 4 Dec 2022 22:37 +0000
Subject: [PATCH] build gotestsum so tests run
step-cli 0.23.0 started using gotestsum for tests but didn't actually
build the gotestsum program.
---
diff -aur a/make/common.mk b/make/common.mk
--- a/make/common.mk
+++ b/make/common.mk
@@ -61,7 +61,8 @@
#########################################
test:
- $Q $(CGO_OVERRIDE) $(GOFLAGS) gotestsum -- -coverprofile=coverage.out -short -covermode=atomic ./...
+ $Q go install gotest.tools/gotestsum@latest
+ $Q $(CGO_OVERRIDE) ~/go/bin/gotestsum -- -coverprofile=coverage.out -short -covermode=atomic ./...
race:
$Q $(CGO_OVERRIDE) $(GOFLAGS) gotestsum -- -race ./...