aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2021-08-04 11:25:28 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2021-08-31 14:05:37 +0000
commitfd8334dd51d63df817a2057cb3298c125cf310b9 (patch)
tree5e3317c12460932031e94cd2a3b12be2d648ca66
parent58a82a7e0a5bc010236991061aa959e55672028c (diff)
[TEST] Get cleanup reports from substeps also if parent step has no cleanup report
Some cleanup reports are missing in pnf_macro test. Issue-ID: TEST-357 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I1d8cb6ccdfc4bd82c581bcce74e2d573bd306fda
-rw-r--r--src/onaptests/steps/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/onaptests/steps/base.py b/src/onaptests/steps/base.py
index 6d43fbc..744fc7b 100644
--- a/src/onaptests/steps/base.py
+++ b/src/onaptests/steps/base.py
@@ -126,8 +126,8 @@ class BaseStep(ABC):
if self._cleanup:
if self._cleanup_report:
yield self._cleanup_report
- for step in self._steps:
- yield from step.cleanup_reports
+ for step in self._steps:
+ yield from step.cleanup_reports
@property
def name(self) -> str: