From 8ab15e3774eb4f6754f13aca6ee66724aa06e583 Mon Sep 17 00:00:00 2001 From: Yang Guo Date: Fri, 23 Jun 2017 16:11:25 -0700 Subject: [PATCH] Encodes ReportPrefix into the generated metrics file names --- test/e2e_node/benchmark_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/benchmark_util.go b/test/e2e_node/benchmark_util.go index 4cc9322e44a..ee2ffb98753 100644 --- a/test/e2e_node/benchmark_util.go +++ b/test/e2e_node/benchmark_util.go @@ -43,7 +43,7 @@ const ( // data for the test into the file with the specified prefix. func dumpDataToFile(data interface{}, labels map[string]string, prefix string) { testName := labels["test"] - fileName := path.Join(framework.TestContext.ReportDir, fmt.Sprintf("%s-%s.json", prefix, testName)) + fileName := path.Join(framework.TestContext.ReportDir, fmt.Sprintf("%s-%s-%s.json", prefix, framework.TestContext.ReportPrefix, testName)) labels["timestamp"] = strconv.FormatInt(time.Now().UTC().Unix(), 10) framework.Logf("Dumping perf data for test %q to %q.", testName, fileName) if err := ioutil.WriteFile(fileName, []byte(framework.PrettyPrintJSON(data)), 0644); err != nil {