зеркало из https://github.com/github/vitess-gh.git
ask test.go to output absolute path for output file
This commit is contained in:
Родитель
11f200ce53
Коммит
4266159c11
5
test.go
5
test.go
|
@ -349,8 +349,9 @@ func main() {
|
|||
test.logf("%s\n", output)
|
||||
}
|
||||
outFile := fmt.Sprintf("%v-%v.%v.log", test.name, test.runIndex+1, try)
|
||||
test.logf("saving test output to %v", outFile)
|
||||
if fileErr := ioutil.WriteFile(path.Join(outDir, outFile), output, os.FileMode(0644)); fileErr != nil {
|
||||
outFilePath := path.Join(outDir, outFile)
|
||||
test.logf("saving test output to %v", outFilePath)
|
||||
if fileErr := ioutil.WriteFile(outFilePath, output, os.FileMode(0644)); fileErr != nil {
|
||||
test.logf("WriteFile error: %v", fileErr)
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче