aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-01-25 13:56:38 +0100
committerFilip Tehlar <ftehlar@cisco.com>2023-01-25 13:56:38 +0100
commit5616041aedf5e12da536aa4a8ffa8d3fe2270b88 (patch)
tree9318a75268a05e788cc920ba5c02c956b3fe0f9b /extras/hs-test
parentddc16cfcf96ed9193522dd006b9e3edef1107e43 (diff)
hs-test: handle error in config serialization
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: If5bbf390df08acd1f67d31428b763f246dbcedf2
Diffstat (limited to 'extras/hs-test')
-rw-r--r--extras/hs-test/vppinstance.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go
index 15524b826c2..14d6ab6ba9d 100644
--- a/extras/hs-test/vppinstance.go
+++ b/extras/hs-test/vppinstance.go
@@ -91,6 +91,9 @@ func (vpp *VppInstance) start() error {
}
serializedConfig, err := serializeVppConfig(vpp.config)
+ if err != nil {
+ return fmt.Errorf("serialize vpp config: %v", err)
+ }
args := fmt.Sprintf("%s '%s'", vpp.actionFuncName, serializedConfig)
_, err = vpp.container.execAction(args)
if err != nil {