Correct documented return values 27/72627/3
authorVincent Danno <vincent.danno@orange.com>
Tue, 1 Jun 2021 19:26:51 +0000 (21:26 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 19 Aug 2021 14:21:40 +0000 (16:21 +0200)
In particular, for mts, error cases can yield values other than -1.

Signed-off-by: Vincent Danno <vincent.danno@orange.com>
Change-Id: I50ba896b835075fd3f3dd01f848fcc45076245ac

xtesting/core/feature.py

index b41519d..5a02bb6 100644 (file)
@@ -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"]