fix ci - ginkgo
This commit is contained in:
lyyyuna 2020-06-16 14:13:39 +08:00
parent 57498dd11f
commit 272e4a858b
3 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

@ -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))

View File

@ -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 ./...
e2e.test -test.v ./...