aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/onaptests/configuration/settings.py2
-rw-r--r--src/onaptests/steps/reports_collection.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/onaptests/configuration/settings.py b/src/onaptests/configuration/settings.py
index 3339082..745dc08 100644
--- a/src/onaptests/configuration/settings.py
+++ b/src/onaptests/configuration/settings.py
@@ -28,7 +28,7 @@ LOG_CONFIG = {
"level": "DEBUG",
"class": "logging.FileHandler",
"formatter": "default",
- "filename": "./pythonsdk.debug.log",
+ "filename": "/tmp/pythonsdk.debug.log",
"mode": "w"
}
},
diff --git a/src/onaptests/steps/reports_collection.py b/src/onaptests/steps/reports_collection.py
index bcb199f..3c1dfb6 100644
--- a/src/onaptests/steps/reports_collection.py
+++ b/src/onaptests/steps/reports_collection.py
@@ -36,7 +36,7 @@ class ReportsCollection:
def generate_report(self) -> None:
step_list = self.report
- failing_steps = []
+ failing_steps = {}
for step,status in step_list.items():
if 'FAIL' in status:
failing_steps[step] = status
@@ -51,7 +51,6 @@ class ReportsCollection:
except NameError:
components = ""
- log_path = settings.LOG_CONFIG['handlers']['file']['filename']
jinja_env = Environment(
autoescape=select_autoescape(['html']),
loader=FileSystemLoader(sys.path[-1] + '/onaptests/templates/reporting'))
@@ -62,5 +61,5 @@ class ReportsCollection:
usecase=usecase,
details=details,
components=components,
- log_path=log_path).dump(
+ log_path="./pythonsdk.debug.log").dump(
settings.REPORTING_FILE_PATH)