Skip to content

Commit

Permalink
Try parallel again
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Nov 10, 2023
1 parent 1c4038c commit 07f37a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd_gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ fi
// runInParallel determines whether a particular validator and version should be run in parallel.
func runInParallel(validatorId, version string) bool {
switch {
case validatorId == "goyang-ygot", validatorId == "pyang" && version == "head":
case validatorId == "pyang" && version == "head":
return false
default:
return true
Expand Down
6 changes: 3 additions & 3 deletions cmd_gen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ function run-dir() {
fi
}
go install golang.org/x/tools/cmd/goimports@latest &>> ${prefix}pass || status=1
run-dir "acl" "openconfig-acl" testdata/acl/openconfig-acl.yang testdata/acl/openconfig-acl-evil-twin.yang
run-dir "optical-transport" "openconfig-optical-amplifier" testdata/optical-transport/openconfig-optical-amplifier.yang
run-dir "optical-transport" "openconfig-transport-line-protection" testdata/optical-transport/openconfig-transport-line-protection.yang
run-dir "acl" "openconfig-acl" testdata/acl/openconfig-acl.yang testdata/acl/openconfig-acl-evil-twin.yang &
run-dir "optical-transport" "openconfig-optical-amplifier" testdata/optical-transport/openconfig-optical-amplifier.yang &
run-dir "optical-transport" "openconfig-transport-line-protection" testdata/optical-transport/openconfig-transport-line-protection.yang &
wait
`,
}, {
Expand Down

0 comments on commit 07f37a3

Please sign in to comment.