mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
0b31ffa587
Use a single log writer instance for all std library logging. Setup the std log writer in the logging package, and remove boilerplate from test packages.
19 lines
258 B
Go
19 lines
258 B
Go
package remote
|
|
|
|
import (
|
|
"flag"
|
|
"os"
|
|
"testing"
|
|
|
|
_ "github.com/hashicorp/terraform/internal/logging"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
flag.Parse()
|
|
|
|
// Make sure TF_FORCE_LOCAL_BACKEND is unset
|
|
os.Unsetenv("TF_FORCE_LOCAL_BACKEND")
|
|
|
|
os.Exit(m.Run())
|
|
}
|