From 073c3713c16c36bf8d549b3f7dea867a6aa88fee Mon Sep 17 00:00:00 2001 From: jpic Date: Sun, 2 Aug 2020 06:51:25 +0200 Subject: [PATCH] Let an action mark itself as skipped --- shlax/targets/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shlax/targets/base.py b/shlax/targets/base.py index 37a2856..7f0aa6c 100644 --- a/shlax/targets/base.py +++ b/shlax/targets/base.py @@ -68,7 +68,10 @@ class Target: traceback.print_exception(type(e), e, sys.exc_info()[2]) return True else: - self.output.success(action) + if getattr(action, 'skipped', False): + self.output.skip(action) + else: + self.output.success(action) result.status = 'success' finally: self.caller.results.append(result)