hs-test: fix after merge 63/41463/2
authorMatus Fabian <[email protected]>
Thu, 22 Aug 2024 07:35:59 +0000 (09:35 +0200)
committerDave Wallace <[email protected]>
Thu, 22 Aug 2024 11:40:10 +0000 (11:40 +0000)
Type: test
Change-Id: I2a1d35a9e7a6c8e8026388a0baacbc18310f0ba1
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/infra/utils.go

index 3df83f3..9dd2dbd 100644 (file)
@@ -156,7 +156,7 @@ where LogPrefix is set to nginxContainer.Name
 */
 func (s *HstSuite) CollectNginxLogs(containerName string) {
        nginxContainer := s.GetContainerByName(containerName)
-       targetDir := nginxContainer.getLogDirPath()
+       targetDir := nginxContainer.Suite.getLogDirPath()
        source := nginxContainer.GetHostWorkDir() + "/" + nginxContainer.Name + "-"
        cmd := exec.Command("cp", "-t", targetDir, source+"error.log", source+"access.log")
        s.Log(cmd.String())
@@ -174,7 +174,7 @@ where LogPrefix is set to envoyContainer.Name
 */
 func (s *HstSuite) CollectEnvoyLogs(containerName string) {
        envoyContainer := s.GetContainerByName(containerName)
-       targetDir := envoyContainer.getLogDirPath()
+       targetDir := envoyContainer.Suite.getLogDirPath()
        source := envoyContainer.GetHostWorkDir() + "/" + envoyContainer.Name + "-"
        cmd := exec.Command("cp", "-t", targetDir, source+"access.log")
        s.Log(cmd.String())