1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-29 22:37:59 +02:00

Cleanup test output

This commit is contained in:
Grant Murphy
2018-03-09 15:28:56 +10:00
parent 66aea5cd99
commit ff2b30ff5d
2 changed files with 5 additions and 4 deletions

View File

@@ -129,6 +129,8 @@ func (p *TestPackage) CreateContext(filename string) *gas.Context {
func (p *TestPackage) Close() {
if p.ondisk {
err := os.RemoveAll(p.Path)
log.Println(err)
if err != nil {
log.Fatal(err)
}
}
}