aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-09-16 16:54:43 +0200
committerTibor Frank <tifrank@cisco.com>2019-09-16 17:12:14 +0200
commitdcf25d4a51aae4618c6b48abfcec8fa1ee6abc50 (patch)
treef6a1b5665d46df0bf1c91a5045802a71b83374b4 /resources/tools/presentation/input_data_parser.py
parent73ec7448c57b8d7632ed90c1dbdcf1a32b748ccd (diff)
Trending: Fix removing of old input files
Change-Id: I67ff7944a1eb576bd6e739202a94eb12be9e0e1b Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/input_data_parser.py')
-rw-r--r--resources/tools/presentation/input_data_parser.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index 35ec69d07d..6ab7e4d76a 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -30,7 +30,6 @@ from robot import errors
from collections import OrderedDict
from string import replace
from os import remove
-from os.path import join
from datetime import datetime as dt
from datetime import timedelta
from json import loads
@@ -1312,23 +1311,6 @@ class InputData(object):
("INFO",
" The build {job}/{build} is outdated, will be "
"removed".format(job=job, build=build["build"])))
- file_name = self._cfg.input["file-name"]
- full_name = join(
- self._cfg.environment["paths"]["DIR[WORKING,DATA]"],
- "{job}{sep}{build}{sep}{name}".format(
- job=job,
- sep=SEPARATOR,
- build=build["build"],
- name=file_name.replace(".gz", "")))
- try:
- remove(full_name)
- logs.append(("INFO",
- " The file {name} has been removed".
- format(name=full_name)))
- except OSError as err:
- logs.append(("ERROR",
- "Cannot remove the file '{0}': {1}".
- format(full_name, repr(err))))
logs.append(("INFO", " Done."))
for level, line in logs: