From 0eccf453c6550bf7c3435dd08c8b504d82e2e2bd Mon Sep 17 00:00:00 2001 From: Hadi Rayan Al-Sandid Date: Mon, 24 Jun 2024 10:48:54 +0200 Subject: hs-test: return error if connecting to vpp fails 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 --- extras/hs-test/infra/vppinstance.go | 1 + 1 file changed, 1 insertion(+) (limited to 'extras/hs-test/infra') diff --git a/extras/hs-test/infra/vppinstance.go b/extras/hs-test/infra/vppinstance.go index 5164a54aa9a..48d2b783917 100644 --- a/extras/hs-test/infra/vppinstance.go +++ b/extras/hs-test/infra/vppinstance.go @@ -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( -- cgit 1.2.3-korg