aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHadi Rayan Al-Sandid <halsandi@cisco.com>2024-06-24 10:48:54 +0200
committerDave Wallace <dwallacelf@gmail.com>2024-06-25 14:59:36 +0000
commit0eccf453c6550bf7c3435dd08c8b504d82e2e2bd (patch)
tree04af25cdaa1e218e11ab0b7c436fba1e20404a31
parent290dc7b63ea4f97b8d9a05b9aa840e97e0bff7ad (diff)
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 <halsandi@cisco.com>
-rw-r--r--extras/hs-test/infra/vppinstance.go1
1 files changed, 1 insertions, 0 deletions
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(