Skip to content

Commit c899fc3

Browse files
committed
UPSTREAM: <carry>: Add tests-extension verify-metadata to verify
Signed-off-by: Todd Short <todd.short@me.com>
1 parent ac96a56 commit c899fc3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

openshift/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export GO_BUILD_LDFLAGS := -s -w -X '$(VERSION_PATH).gitCommit=$(GIT_COMMIT)'
2121
verify: ## Run downstream-specific verify
2222
$(MAKE) tidy fmt generate -C $(DIR)/../
2323
$(MAKE) manifests
24+
$(MAKE) -C tests-extension verify-metadata
2425
git diff --exit-code
2526

2627
.PHONY: manifests

openshift/tests-extension/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ clean-metadata: #HELP Remove 'codeLocations' from metadata JSON
143143
@jq 'map(del(.codeLocations))' $(METADATA) > $(METADATA).tmp && mv $(METADATA).tmp $(METADATA)
144144

145145
.PHONY: verify-metadata #HELP To verify that the metadata was properly update
146-
verify-metadata: update-metadata
147-
@if ! git diff --exit-code $(METADATA); then \
148-
echo "ERROR: Metadata is out of date. Please run 'make build-update' and commit the result."; \
146+
verify-metadata: update-metadata bindata
147+
@if ! git diff --exit-code >&/dev/null; then \
148+
echo "ERROR: Metadata or bindata is out of date. Please run 'make build-update' and commit the result."; \
149149
exit 1; \
150150
fi

0 commit comments

Comments
 (0)