Skip to content

Commit

Permalink
Fix incorrect textproto syntax in metadata. (openconfig#2764)
Browse files Browse the repository at this point in the history
* (M) tools/wikidoc/wikidoc.go
   - Make wikidoc report what file it failed to parse.
 * (M) feature/bgp/policybase/otg_tests/comm_match_action_test/metadata.textproto
 * (M) feature/bgp/policybase/otg_tests/extcomm_action_test/metadata.textproto
   - Fix missing [] to indicate a list of tags.
  • Loading branch information
robshakir authored Mar 5, 2024
1 parent 710172e commit 600d6a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
plan_id: "RT-7.8"
description: "BGP Policy Match Standard Community and Add Community Import/Export Policy"
testbed: TESTBED_DUT_ATE_2LINKS
tags: TAGS_AGGREGATION, TAGS_TRANSIT, TAGS_DATACENTER_EDGE
tags: [TAGS_AGGREGATION, TAGS_TRANSIT, TAGS_DATACENTER_EDGE]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
plan_id: "RT-7.9"
description: "BGP Policy - Import/Export Policy Action Using Communities"
testbed: TESTBED_DUT_ATE_2LINKS
tags: TAGS_AGGREGATION, TAGS_TRANSIT, TAGS_DATACENTER_EDGE
tags: [TAGS_AGGREGATION, TAGS_TRANSIT, TAGS_DATACENTER_EDGE]
3 changes: 2 additions & 1 deletion tools/wikidoc/wikidoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package main

import (
"fmt"
"io/fs"
"os"
"path/filepath"
Expand Down Expand Up @@ -143,7 +144,7 @@ func fetchTestDocs(rootPath string) ([]testDoc, error) {
}
md := new(mpb.Metadata)
if err := prototext.Unmarshal(bytes, md); err != nil {
return err
return fmt.Errorf("cannot unmarshal %s: %v", path, err)
}
docMap[md.GetUuid()] = testDoc{
Name: filepath.Base(filepath.Dir(path)),
Expand Down

0 comments on commit 600d6a6

Please sign in to comment.