From cfe2ffcc23b714804c42109868a964d1b40f1630 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 16 Oct 2020 15:21:13 +0200 Subject: repository: rewrite results processing Drop the use of retcode, as it is not very meaningful. Drop all_ok, as it is not very useful. Catch all exceptions from individual targets and wrap them as failed results. --- lbup/targets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lbup/targets.py') diff --git a/lbup/targets.py b/lbup/targets.py index d3c724a..9801bc4 100644 --- a/lbup/targets.py +++ b/lbup/targets.py @@ -110,7 +110,7 @@ class Target(ABC): retcode = res_save.returncode output += res_save.stderr + res_save.stdout - result = repository.StepResult(retcode, output) + result = repository.StepResult(retcode == 0, output) return result -- cgit v1.2.3