aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/base.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2021-10-25 07:14:01 +0000
committerGerrit Code Review <gerrit@onap.org>2021-10-25 07:14:01 +0000
commit1730cce98d93f42d8e2e7a180ac94bed4cbfa29f (patch)
tree844dec5ad11857f67c539aa3e4bffe0d68dc07d2 /src/onaptests/steps/base.py
parentec14ad158ecd5489cc8169b23015c716f946e909 (diff)
parentac0b4732cf23d5bf9c96ef56e8d6e5346f3c2fbc (diff)
Merge "[TEST] Do not show "No execution start time..." error log message for skipped substeps"
Diffstat (limited to 'src/onaptests/steps/base.py')
-rw-r--r--src/onaptests/steps/base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/onaptests/steps/base.py b/src/onaptests/steps/base.py
index 4d6858d..97c9159 100644
--- a/src/onaptests/steps/base.py
+++ b/src/onaptests/steps/base.py
@@ -187,8 +187,9 @@ class BaseStep(ABC):
)
else:
if not self._start_execution_time:
- self._logger.error("No execution start time saved for %s step. Fix it by call `super.execute()` "
- "in step class `execute()` method definition", self.name)
+ if execution_status != ReportStepStatus.NOT_EXECUTED:
+ self._logger.error("No execution start time saved for %s step. Fix it by call `super.execute()` "
+ "in step class `execute()` method definition", self.name)
self._start_execution_time = time.time()
self._execution_report = Report(
step_description=f"[{self.component}] {self.name}: {self.description}",