diff --git a/tests/e2e/builder.go b/tests/e2e/builder.go index 7ac5763aee..4c3c604519 100644 --- a/tests/e2e/builder.go +++ b/tests/e2e/builder.go @@ -82,7 +82,6 @@ func generateImageName(version string, cfg TargetConfig) (string, error) { tagName = "local" // this refers to build from local workspace } else { // use git hash of rev as docker image tag - cmd := exec.Command("git", "log", "--pretty=format:%h", "-n", "1", version) out, err := cmd.CombinedOutput() if err != nil { @@ -179,7 +178,7 @@ func pullDockerImage(tag string, targetConfig TargetConfig) (string, error) { // bootstrapSDK in workspace to use custom SDK setup if required func bootstrapSDK(workSpace string, targetCfg TargetConfig) error { sdkPath := strings.Join([]string{workSpace, "cosmos-sdk"}, string(os.PathSeparator)) - err := os.RemoveAll(sdkPath) //delete old SDK directory + if err != nil { return fmt.Errorf("error deleting SDK directory from workspace: %v", err) } diff --git a/tests/e2e/test_target.go b/tests/e2e/test_target.go index 6fcec7de1b..c3320f500e 100644 --- a/tests/e2e/test_target.go +++ b/tests/e2e/test_target.go @@ -28,7 +28,7 @@ type ExecutionTarget interface { type DockerContainer struct { targetConfig TargetConfig containerCfg ContainerConfig - images []string //images needed to build the target container + ImageName string }