hs-test: added cleanup target
- Also added checkstyle-go and fixstyle-go to 'make help' Type: make Change-Id: I5402efa02bbbc54a20db8f54b0488c58a62ffaa1 Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:

committed by
Dave Wallace

parent
82ad9660be
commit
7d1e4a4ddb
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
@@ -24,6 +26,14 @@ func TestHst(t *testing.T) {
|
||||
} else {
|
||||
suiteTimeout = time.Minute * 5
|
||||
}
|
||||
|
||||
// creates a file with PPID, used for 'make cleanup-hst'
|
||||
ppid := fmt.Sprint(os.Getppid())
|
||||
ppid = ppid[:len(ppid)-1]
|
||||
f, _ := os.Create(".last_hst_ppid")
|
||||
f.Write([]byte(ppid))
|
||||
f.Close()
|
||||
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "HST")
|
||||
}
|
||||
|
Reference in New Issue
Block a user