Removes occurrence of docker from utils.go
@@ -369,7 +369,7 @@ type OdoV2Watch struct {
// OdoWatch creates files, dir in the context and watches for the changes to be pushed
// Specify OdoV1Watch for odo version 1, OdoV2Watch for odo version 2(devfile)
-// platform is either kube or docker
+// platform is kube
func OdoWatch(odoV1Watch OdoV1Watch, odoV2Watch OdoV2Watch, project, context, flag string, runner interface{}, platform string) {
isDevfileTest := false
@@ -675,16 +675,7 @@ func ExecWithInvalidCommand(context, cmpName, pushTarget string) {
args = []string{"exec", "--context", context}
args = append(args, "--", "invalidCommand")
- var output string
-
- // since exec package for docker returns no error
- // on execution of an invalid command
- switch strings.ToLower(pushTarget) {
- case "kube":
- output = helper.CmdShouldFail("odo", args...)
- case "docker":
- output = helper.CmdShouldPass("odo", args...)
- }
+ output := helper.CmdShouldFail("odo", args...)
Expect(output).To(ContainSubstring("executable file not found in $PATH"))
}
