Suppress read of .mlrrc during regression tests (#808)

This commit is contained in:
John Kerl 2021-12-26 10:53:19 -05:00 committed by GitHub
parent f2f528ee41
commit 5e8d3fddd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -84,7 +84,6 @@ so: install
sure: build check
mlr:
go build github.com/johnkerl/miller/cmd/mlr
go build github.com/johnkerl/miller/cmd/mprof5
# ----------------------------------------------------------------
# Please see comments in ./create-release-tarball as well as

View file

@ -159,6 +159,8 @@ func (regtester *RegTester) Execute(
for _, name := range envVarsToUnset {
os.Unsetenv(name)
}
// If there is an accessible .mlrrc file, we don't want it to be read for the regression test.
os.Setenv("MLRRC", "__none__")
regtester.resetCounts()