Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! integrate with make update-golden-files
  • Loading branch information
johnstcn committed Mar 10, 2023
commit 21cd245e9c1984cc58f01b74bb154e0578aade6e
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -516,14 +516,14 @@ coderd/apidoc/swagger.json: $(shell find ./scripts/apidocgen $(FIND_EXCLUSIONS)
./scripts/apidocgen/generate.sh
yarn run --cwd=site format:write:only ../docs/api ../docs/manifest.json ../coderd/apidoc/swagger.json

update-golden-files: cli/testdata/.gen-golden helm/test/testdata/.gen-golden
update-golden-files: cli/testdata/.gen-golden helm/tests/testdata/.gen-golden
.PHONY: update-golden-files

cli/testdata/.gen-golden: $(wildcard cli/testdata/*.golden) $(GO_SRC_FILES)
go test ./cli -run=TestCommandHelp -update
touch "$@"

helm/test/testdata/.gen-golden: $(wildcard helm/test/testdata/*.golden) $(GO_SRC_FILES)
helm/tests/testdata/.gen-golden: $(wildcard helm/tests/testdata/*.golden) $(GO_SRC_FILES)
go test ./helm/tests -run=TestUpdateGoldenFiles -update
touch "$@"

Expand Down
2 changes: 0 additions & 2 deletions helm/tests/chart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ func TestUpdateGoldenFiles(t *testing.T) {
require.NoError(t, writeGoldenFile(tc.name, manifests), "failed to write golden file")
}
t.Log("Golden files updated. Please review the changes and commit them.")
t.Log("This test fails intentionally to prevent accidental updates.")
t.FailNow()
}

func TestMain(m *testing.M) {
Expand Down