diff options
author | Adrian Villin <avillin@cisco.com> | 2024-06-07 06:45:48 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-06-10 16:42:38 +0000 |
commit | 681ff3a02a47ff453df84da5e5f4359f1d60d055 (patch) | |
tree | 2234459b7d32c1f869338c35b9f0fdd8a822eaae /extras/hs-test/framework_test.go | |
parent | 3def24bc489d879a05ced49d2dddfe909c489623 (diff) |
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>
Diffstat (limited to 'extras/hs-test/framework_test.go')
-rw-r--r-- | extras/hs-test/framework_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/hs-test/framework_test.go b/extras/hs-test/framework_test.go index 8cbf936f026..8d7e2edfd13 100644 --- a/extras/hs-test/framework_test.go +++ b/extras/hs-test/framework_test.go @@ -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 |