hs-test: various improvements

- fixed timed out/panicked tests not copying logs to CI archives
- fixed log formatting
- renamed SuiteTimeout to TestTimeout
- fixed ginkgo node leak on test timeout -> added AssertChannelClosed
- updated docs

Type: test

Change-Id: Ia71d765bd61576230a4cfd26d4b14fd1be1692c7
Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:
Adrian Villin
2024-10-15 14:56:16 +02:00
committed by Florin Coras
parent 6771af7328
commit 514098ee82
15 changed files with 53 additions and 42 deletions

View File

@@ -15,9 +15,9 @@ import (
func TestHst(t *testing.T) {
if *IsVppDebug {
// 30 minute timeout so that the framework won't timeout while debugging
SuiteTimeout = time.Minute * 30
TestTimeout = time.Minute * 30
} else {
SuiteTimeout = time.Minute * 5
TestTimeout = time.Minute * 5
}
output, err := os.ReadFile("/sys/devices/system/node/online")