hs-test: use docker sdk

Type: test

Change-Id: I9d6b15ca6a9aac3343e10f480dec43c4c538f1b7
Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:
Adrian Villin
2024-07-09 15:31:36 +02:00
parent b69ee00c34
commit 2514001377
8 changed files with 340 additions and 101 deletions

View File

@@ -3,8 +3,6 @@ package main
import (
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
@@ -14,11 +12,6 @@ import (
. "github.com/onsi/gomega"
)
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
@@ -28,7 +21,6 @@ func TestHst(t *testing.T) {
}
output, err := os.ReadFile("/sys/devices/system/node/online")
fmt.Println(string(output))
if err == nil && strings.Contains(string(output), "-") {
NumaAwareCpuAlloc = true
}