hs-test: add nginx+quic test
Type: test Change-Id: I15e4f2fb84cb4f34b6fea95978db000854a63e78 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
fe965a3a17
commit
31eaea9eef
@@ -4,6 +4,8 @@ import (
|
||||
"flag"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/edwarnicke/exechelper"
|
||||
@@ -162,6 +164,20 @@ func (s *HstSuite) SkipIfMultiWorker(args ...any) {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *HstSuite) SkipUnlessExtendedTestsBuilt() {
|
||||
imageName := "hs-test/nginx-http3"
|
||||
|
||||
cmd := exec.Command("docker", "images", imageName)
|
||||
byteOutput, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
s.log("error while searching for docker image")
|
||||
return
|
||||
}
|
||||
if !strings.Contains(string(byteOutput), imageName) {
|
||||
s.skip("extended tests not built")
|
||||
}
|
||||
}
|
||||
|
||||
func (s *HstSuite) resetContainers() {
|
||||
for _, container := range s.containers {
|
||||
container.stop()
|
||||
|
Reference in New Issue
Block a user