| // This file contains google3 specific code to make tests work with blaze. | |
| package printer | |
| import ( | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| ) | |
| func init() { | |
| dir := filepath.Join(os.Getenv("TEST_SRCDIR"), "google3/third_party/golang/hashicorp/hcl/hcl/printer") | |
| if err := os.Chdir(dir); err != nil { | |
| panic(fmt.Sprintf("os.Chdir(%q): %v", dir, err)) | |
| } | |
| } |