diff --git a/tools/addrundata/list_testtracker.go b/tools/addrundata/list_testtracker.go index 3079587a67c..3e5b13a9405 100644 --- a/tools/addrundata/list_testtracker.go +++ b/tools/addrundata/list_testtracker.go @@ -21,6 +21,7 @@ import ( // JSON. It optionally merges with an existing JSON if given. The JSON uses a // proprietary schema for test tracker. See listJSON for a simpler schema. func listTestTracker(w io.Writer, mergejson string, featuredir string, ts testsuite) error { + reduceMetadata(ts) rootdir := filepath.Dir(featuredir) ttp, ok := ttBuildPlan(ts, rootdir) if !ok { @@ -48,6 +49,18 @@ func listTestTracker(w io.Writer, mergejson string, featuredir string, ts testsu return err } +// reduceMetadata includes only the test metadata fields we care about for testtracker. +func reduceMetadata(ts testsuite) { + for _, tc := range ts { + md := tc.existing + tc.existing = &mpb.Metadata{ + Uuid: md.Uuid, + PlanId: md.PlanId, + Description: md.Description, + } + } +} + // ttBuildPlan builds a hierarchical ttPlan from a flat testsuite. The ttPlan reorganizes // the testsuite by splitting the test sections into ttSuite, and collates the different // test kinds of the same test cases into the same ttCase.