aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
diff options
context:
space:
mode:
authorVincent Danno <vincent.danno@orange.com>2021-06-01 21:26:51 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-08-19 16:21:40 +0200
commitf32ab02c42a775e57ba34153d2d401bee34e88b8 (patch)
tree9e5f1fbedd330e65e2b78451f64a763fb7977f51 /xtesting/core
parent5a5e29c1fabf6de30ecbf1975d6d8c8376502ec7 (diff)
Correct documented return values
In particular, for mts, error cases can yield values other than -1. Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I50ba896b835075fd3f3dd01f848fcc45076245ac
Diffstat (limited to 'xtesting/core')
-rw-r--r--xtesting/core/feature.py4
1 files changed, 2 insertions, 2 deletions
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"]