Skip to content

Commit

Permalink
Label tests and run default tests
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Jul 31, 2024
1 parent 71b6b0a commit 135b2e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ test:
WORKDIR /build
COPY . .
ARG TEST_PATHS=./...
ARG LABEL_FILTER=
ENV CGO_ENABLED=1
# Some test require the docker sock exposed
WITH DOCKER --load enki-image=(+enki-image)
RUN go run github.com/onsi/ginkgo/v2/ginkgo run --label-filter "$LABEL_FILTER" -v --fail-fast --race --covermode=atomic --coverprofile=coverage.out --coverpkg=github.com/kairos-io/enki/... -p -r $TEST_PATHS
RUN go run github.com/onsi/ginkgo/v2/ginkgo run --label-filter "\!bootable" -v --fail-fast --race --covermode=atomic --coverprofile=coverage.out --coverpkg=github.com/kairos-io/enki/... -p -r $TEST_PATHS
END
SAVE ARTIFACT coverage.out AS LOCAL coverage.out

Expand Down
2 changes: 1 addition & 1 deletion e2e/build_uki_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
. "github.com/onsi/gomega"
)

var _ = Describe("build-uki", func() {
var _ = Describe("build-uki", Label("build-uki", "e2e"), func() {
var resultDir string
var keysDir string
var resultFile string
Expand Down
2 changes: 1 addition & 1 deletion e2e/genkey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
. "github.com/onsi/gomega"
)

var _ = Describe("genkey", func() {
var _ = Describe("genkey", Label("genkey", "e2e"), func() {
var resultDir string
var err error
var enki *Enki
Expand Down

0 comments on commit 135b2e0

Please sign in to comment.