From f32ab02c42a775e57ba34153d2d401bee34e88b8 Mon Sep 17 00:00:00 2001 From: Vincent Danno Date: Tue, 1 Jun 2021 21:26:51 +0200 Subject: Correct documented return values In particular, for mts, error cases can yield values other than -1. Signed-off-by: Vincent Danno Change-Id: I50ba896b835075fd3f3dd01f848fcc45076245ac --- xtesting/core/feature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtesting') diff --git a/xtesting/core/feature.py b/xtesting/core/feature.py index b41519d0..5a02bb6a 100644 --- a/xtesting/core/feature.py +++ b/xtesting/core/feature.py @@ -95,8 +95,8 @@ class BashFeature(Feature): kwargs: Arbitrary keyword arguments. Returns: - 0 if cmd returns 0, - non-zero in all other cases. + process return code if no exception, + -1 otherwise. """ try: cmd = kwargs["cmd"] -- cgit 1.2.3-korg