hs-test: return error if connecting to vpp fails 78/41178/2
authorHadi Rayan Al-Sandid <[email protected]>
Mon, 24 Jun 2024 08:48:54 +0000 (10:48 +0200)
committerDave Wallace <[email protected]>
Tue, 25 Jun 2024 14:59:36 +0000 (14:59 +0000)
Type: fix

Fix case where no error code would be returned if vpp was launched,
but then exited due to invalid configuration.

Change-Id: I54d526629a2ee0206227615ffb6cb658779f93a0
Signed-off-by: Hadi Rayan Al-Sandid <[email protected]>
extras/hs-test/infra/vppinstance.go

index 5164a54..48d2b78 100644 (file)
@@ -184,6 +184,7 @@ func (vpp *VppInstance) Start() error {
        e := <-connEv
        if e.State != core.Connected {
                vpp.getSuite().Log("connecting to VPP failed: " + fmt.Sprint(e.Error))
+               return e.Error
        }
 
        ch, err := conn.NewStream(