summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2017-11-20 10:24:26 +0100
committerGeorg Kunz <georg.kunz@ericsson.com>2017-11-20 10:24:26 +0100
commit0a975f104f0af27f517bc8eaf9ae662915ae4e97 (patch)
tree9637e63367641e70cb5d6f4240427b57c2cecca8
parent1fcf44ee63a1d0aa1fd07a867fefcc8edf257393 (diff)
Include full date in name of compressed result file
The name of the compressed result file included a timestamp according to the pattern "day_hour_minute". This is a rather uncommon timestamp and can cause confusion. This patch changes the timestamp to a more common "YearMonthDay-HourMinute" format. Please note: Please check if this change has an impact on the web portal. Change-Id: Ife41050bc1d5ca6942706b756d03a1d0d251ae41 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
-rw-r--r--dovetail/report.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 41f14b53..12d6dcad 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -163,7 +163,7 @@ class Report(object):
@classmethod
def save_logs(cls):
- file_suffix = time.strftime('%d_%H_%M', time.localtime(time.time()))
+ file_suffix = time.strftime('%Y%m%d_%H%M', time.localtime())
logs_gz = "logs_{}.tar.gz".format(file_suffix)
result_dir = dt_cfg.dovetail_config['result_dir']