Skip to content

Commit

Permalink
cmd/cue: allow CUE_UPDATE to update cmd/cue/cmd testscript tests
Browse files Browse the repository at this point in the history
Allow CUE_UPDATE to set testscript.Params.UpdateScripts for the
cmd/cue/cmd/testdata/script testscript tests.

Change-Id: I76ae5e28eaf307c050694f488e0d4d3ef9e39bb2
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8403
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
myitcv committed Jan 29, 2021
1 parent 37c16cc commit b8d9972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cue/cmd/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

var _ = errors.Print

var update = flag.Bool("update", false, "update the test files")
var update = flag.Bool("update", os.Getenv("CUE_UPDATE") != "", "update the test files")

func printConfig(t *testing.T) *errors.Config {
t.Helper()
Expand Down

0 comments on commit b8d9972

Please sign in to comment.