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