From 5480578ecf069a4214e28df96541ba253ff93c3c Mon Sep 17 00:00:00 2001 From: Lars Brueckner Date: Wed, 30 Aug 2023 14:43:09 +0000 Subject: [PATCH] toolrecord files: remove the timestamp from the filename --- pkg/toolrecord/toolrecord.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/toolrecord/toolrecord.go b/pkg/toolrecord/toolrecord.go index 20f79efaf3..3168dd99e9 100644 --- a/pkg/toolrecord/toolrecord.go +++ b/pkg/toolrecord/toolrecord.go @@ -62,14 +62,13 @@ func New(fileUtils fileWriteUtils, workspace, toolName, toolInstance string) *To tr.workspace = workspace - now := time.Now().UTC() reportFileName := filepath.Join(workspace, "toolruns", - "toolrun_"+toolName+"_"+ - now.Format("20060102150405")+ - ".json") + "toolrun_"+toolName+"_all.json") tr.reportFileName = reportFileName - // keep the timestamp inside the object too + + // keep a timestamp inside all files + now := time.Now().UTC() var otr = &tr otr.AddContext("generatedOnUtc", now.Format("20060102150405")) return otr