[TEST] Get cleanup reports from substeps also if parent step has no cleanup report 24/123724/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>
Tue, 31 Aug 2021 14:05:37 +0000 (14:05 +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: I1d8cb6ccdfc4bd82c581bcce74e2d573bd306fda

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: