Skip to content

Commit

Permalink
debugging integration spec in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed Sep 13, 2022
1 parent 10a9371 commit 43bbd8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration/progress_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package integration_test

import (
"fmt"
"os"
"path/filepath"
"regexp"
Expand Down Expand Up @@ -50,12 +51,13 @@ var _ = Describe("Emitting progress", func() {
Eventually(session).Should(gexec.Exit(0))
})

It("allows the user to specify a source-root to find source code files", func() {
FIt("allows the user to specify a source-root to find source code files", func() {
// first we build the test with -gcflags=all=-trimpath=<PATH TO SPEC> to ensure
// that stack traces do not contain absolute paths
path, err := filepath.Abs(fm.PathTo("progress_reporter"))
Ω(err).ShouldNot(HaveOccurred())
session := startGinkgo(fm.PathTo("progress_reporter"), "build", `-gcflags=all=-trimpath=`+path+``)
fmt.Println(path)
session := startGinkgo(fm.PathTo("progress_reporter"), "build", `-gcflags=-trimpath=`+path+``)
Eventually(session).Should(gexec.Exit(0))

// now we move the compiled test binary to a separate directory
Expand Down

0 comments on commit 43bbd8a

Please sign in to comment.