Skip to content

Commit

Permalink
OCM-7614 | fix: test auto id:11111,11112 and update id:21111,21112
Browse files Browse the repository at this point in the history
  • Loading branch information
yasun1 committed Apr 25, 2024
1 parent 4b3b5be commit e714f0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion images/Dockerfile.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY . .
RUN go install ./cmd/rosa
RUN go test -c -o /go/bin/rosatest ./tests/e2e
RUN rosa verify openshift-client
RUN rosatest --ginkgo.label-filter "e2e-commit"
RUN rosatest --ginkgo.no-color --ginkgo.label-filter "e2e-commit"

FROM registry.ci.openshift.org/ci/cli-ocm:latest as ocmcli

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/e2e_pre_check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ var _ = Describe("PreCheck", func() {

focus, err := rosacli.GetCommitFoucs()
Expect(err).ToNot(HaveOccurred())
fmt.Printf("[%s] Focus: %v\n", author, focus)
fmt.Printf("The user %s updates: %s\n", author, focus)
})
})
4 changes: 2 additions & 2 deletions tests/utils/exec/rosacli/pr_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func GetCommitAuthor() (string, error) {
command := "git log -n 1 --pretty=format:%an"
command := "git log -n 1 --no-merges --pretty=format:%an"
runner := NewRunner()

output, err := runner.RunCMD(strings.Split(command, " "))
Expand All @@ -21,7 +21,7 @@ func GetCommitAuthor() (string, error) {
}

func GetCommitFoucs() (string, error) {
command := "git log -n 1 --pretty=format:%s"
command := "git log -n 1 --no-merges --pretty=format:%s"
runner := NewRunner()

output, err := runner.RunCMD(strings.Split(command, " "))
Expand Down

0 comments on commit e714f0c

Please sign in to comment.