[TEST] Get cleanup reports from substeps also if parent step has no cleanup report 94/123094/1
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Wed, 4 Aug 2021 11:25:28 +0000 (11:25 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Wed, 4 Aug 2021 11:25:28 +0000 (11:25 +0000)
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: Id6edabf77e38c82b6075947fb77b23e4574d01cd

src/onaptests/steps/base.py

index 6d43fbc..744fc7b 100644 (file)
@@ -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: