@@ -73,7 +73,7 @@ var _ = Describe("odo run command tests", func() {
73
73
It ("should fail if odo dev is not running" , func () {
74
74
output := helper .Cmd ("odo" , "run" , "build" ).ShouldFail ().Err ()
75
75
Expect (output ).To (ContainSubstring (`unable to get pod for component` ))
76
- Expect (output ).To (ContainSubstring (`Please check the command odo dev is running` ))
76
+ Expect (output ).To (ContainSubstring (`Please check the command ' odo dev' is running` ))
77
77
})
78
78
79
79
for _ , podman := range []bool {false , true } {
@@ -108,6 +108,13 @@ var _ = Describe("odo run command tests", func() {
108
108
component .Exec ("runtime" , []string {"ls" , "/tmp/new-file" }, pointer .Bool (true ))
109
109
})
110
110
111
+ By ("executing an exec command in another container" , func () {
112
+ output := helper .Cmd ("odo" , "run" , "create-file-in-other-container" , "--platform" , platform ).ShouldPass ().Out ()
113
+ Expect (output ).To (ContainSubstring ("Executing command in container (command: create-file-in-other-container)" ))
114
+ component := helper .NewComponent (cmpName , "app" , labels .ComponentDevMode , commonVar .Project , commonVar .CliRunner )
115
+ component .Exec ("other-container" , []string {"ls" , "/tmp/new-file-in-other-container" }, pointer .Bool (true ))
116
+ })
117
+
111
118
if ! podman {
112
119
By ("executing apply command on Kubernetes component" , func () {
113
120
output := helper .Cmd ("odo" , "run" , "deploy-config" , "--platform" , platform ).ShouldPass ().Out ()
0 commit comments