e2e: Simplify file path constructor
@@ -1388,6 +1388,7 @@ func (td *OsmTestData) GrabLogs() error {
for _, dbgEnvoyPath := range envoyDebugPaths {
cmd := "../../bin/osm"
+ filePath := fmt.Sprintf("%s/%s.txt", podEnvoyConfigFilepath, dbgEnvoyPath)
args := []string{
"proxy",
"get",
@@ -1396,7 +1397,7 @@ func (td *OsmTestData) GrabLogs() error {
"--namespace",
pod.Namespace,
"-f",
- strings.Join([]string{podEnvoyConfigFilepath, fmt.Sprintf("%s.txt", dbgEnvoyPath)}, "/"),
+ filePath,
}
stdout, stderr, err := td.RunLocal(cmd, args)
