summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2024-12-21 20:54:01 +0100
committerMatus Fabian <matfabia@cisco.com>2024-12-21 20:54:01 +0100
commit75b66fd129d6c5f07bef74e2fde321764cc33ed3 (patch)
tree0e34d484612497d903ab22ccc7376182755717a8 /extras
parenta3d0159ba7e3d0f4bf03d69387dc91513113e6d9 (diff)
hs-test: display vpp version in the summary
Display output of 'show version verbose' from vpp in the summary report at the end of a test run. Type: test Change-Id: Iae3d886dd4106678b60389ec42ba42a159940403 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/hs-test/framework_test.go13
-rw-r--r--extras/hs-test/infra/vppinstance.go2
2 files changed, 15 insertions, 0 deletions
diff --git a/extras/hs-test/framework_test.go b/extras/hs-test/framework_test.go
index a578fb15573..f3bf1be56a8 100644
--- a/extras/hs-test/framework_test.go
+++ b/extras/hs-test/framework_test.go
@@ -12,6 +12,19 @@ import (
. "github.com/onsi/gomega"
)
+var _ = ReportAfterSuite("VPP version under test", func(report Report) {
+ for i := range report.SpecReports {
+ specReport := report.SpecReports[i]
+ for j := range specReport.ReportEntries {
+ reportEntry := specReport.ReportEntries[j]
+ if reportEntry.Name == "VPP version" {
+ fmt.Println(reportEntry.Value)
+ return
+ }
+ }
+ }
+})
+
func TestHst(t *testing.T) {
if *IsVppDebug {
// 30 minute timeout so that the framework won't timeout while debugging
diff --git a/extras/hs-test/infra/vppinstance.go b/extras/hs-test/infra/vppinstance.go
index 8d4d694cbb9..d9aa418c5ec 100644
--- a/extras/hs-test/infra/vppinstance.go
+++ b/extras/hs-test/infra/vppinstance.go
@@ -237,6 +237,8 @@ func (vpp *VppInstance) Start() error {
}
vpp.ApiStream = ch
+ AddReportEntry("VPP version", vpp.Vppctl("show version verbose"), ReportEntryVisibilityNever)
+
return nil
}