test: remove unused code in run.go

This commit is contained in:
zhangjian 2022-07-15 21:59:48 +08:00 committed by GitHub
parent dc00aed6de
commit ff1cf0b9d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1867,14 +1867,6 @@ func checkShouldTest() {
assert(shouldTest("// +build !windows !plan9", "windows", "amd64"))
}
func getenv(key, def string) string {
value := os.Getenv(key)
if value != "" {
return value
}
return def
}
// overlayDir makes a minimal-overhead copy of srcRoot in which new files may be added.
func overlayDir(dstRoot, srcRoot string) error {
dstRoot = filepath.Clean(dstRoot)