From 272e4a858b0f1f55d33cb08bc8d9000520e41cf1 Mon Sep 17 00:00:00 2001 From: lyyyuna Date: Tue, 16 Jun 2020 14:13:39 +0800 Subject: [PATCH] fix ci fix ci - ginkgo --- pkg/build/build.go | 2 +- tests/e2e/simple_project_test.go | 1 + tests/run-ci-actions.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/build/build.go b/pkg/build/build.go index 229625f..06232a6 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -103,7 +103,7 @@ func (b *Build) Build() error { // the binary name is always same as the directory name of current directory func (b *Build) determineOutputDir(outputDir string) (string, error) { if b.TmpDir == "" { - log.Errorf("Can only be called after Build.MvProjectsToTmp()", ErrWrongCallSequence) + log.Errorf("Can only be called after Build.MvProjectsToTmp(): %v", ErrWrongCallSequence) return "", fmt.Errorf("can only be called after Build.MvProjectsToTmp(): %w", ErrWrongCallSequence) } curWorkingDir, err := os.Getwd() diff --git a/tests/e2e/simple_project_test.go b/tests/e2e/simple_project_test.go index 139d05a..b189289 100644 --- a/tests/e2e/simple_project_test.go +++ b/tests/e2e/simple_project_test.go @@ -56,6 +56,7 @@ var _ = Describe("E2E", func() { testProjDir := filepath.Join(TESTS_ROOT, "samples/simple_project") cmd := exec.Command("goc", "build", "--debug") cmd.Dir = testProjDir + cmd.Env = append(os.Environ(), "GO111MODULE=on") out, err := cmd.CombinedOutput() Expect(err).To(BeNil(), "goc build on this project should be successful", string(out)) diff --git a/tests/run-ci-actions.sh b/tests/run-ci-actions.sh index 62d0085..ac44500 100755 --- a/tests/run-ci-actions.sh +++ b/tests/run-ci-actions.sh @@ -22,4 +22,4 @@ chmod +x /home/runner/tools/e2e.test/e2e.test export PATH=/home/runner/tools/e2e.test:$PATH cd e2e -e2e.test ./... \ No newline at end of file +e2e.test -test.v ./... \ No newline at end of file