From 84ac0a26ca8b59fceb9cfd9200ddfeeeeb27d615 Mon Sep 17 00:00:00 2001 From: Lukas Abelt Date: Thu, 16 May 2024 14:57:41 +0200 Subject: [PATCH] * Fix Patch Steps --- varats-core/varats/experiment/steps/patch.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/varats-core/varats/experiment/steps/patch.py b/varats-core/varats/experiment/steps/patch.py index bbaf96aff..461cf13e7 100644 --- a/varats-core/varats/experiment/steps/patch.py +++ b/varats-core/varats/experiment/steps/patch.py @@ -21,6 +21,7 @@ def __init__(self, project: VProject, patch: Patch) -> None: self.__patch = patch def __call__(self) -> StepResult: + self.status = StepResult.OK try: print( f"Applying {self.__patch.shortname} to " @@ -31,9 +32,7 @@ def __call__(self) -> StepResult: except ProcessExecutionError: self.status = StepResult.ERROR - self.status = StepResult.OK - - return StepResult.OK + return self.status def __str__(self, indent: int = 0) -> str: return textwrap.indent( @@ -53,6 +52,7 @@ def __init__(self, project: VProject, patch: Patch) -> None: self.__patch = patch def __call__(self) -> StepResult: + self.status = StepResult.OK try: print( f"Reverting {self.__patch.shortname} on " @@ -65,9 +65,7 @@ def __call__(self) -> StepResult: except ProcessExecutionError: self.status = StepResult.ERROR - self.status = StepResult.OK - - return StepResult.OK + return self.status def __str__(self, indent: int = 0) -> str: return textwrap.indent(