hs-test: added filenames to test names
- It is now possible to only run tests that are in a certain file Type: test Change-Id: I41665dd2bc0942c283be36a5af3e560fd65e9d03 Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:

committed by
Dave Wallace

parent
3def24bc48
commit
681ff3a02a
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -10,6 +12,11 @@ import (
|
||||
|
||||
var suiteTimeout time.Duration
|
||||
|
||||
func getTestFilename() string {
|
||||
_, filename, _, _ := runtime.Caller(2)
|
||||
return filepath.Base(filename)
|
||||
}
|
||||
|
||||
func TestHst(t *testing.T) {
|
||||
if *isVppDebug {
|
||||
// 30 minute timeout so that the framework won't timeout while debugging
|
||||
|
Reference in New Issue
Block a user