Code Review
/
functest-xtesting.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5a5e29c
)
Correct documented return values
27/72627/3
author
Vincent Danno
<vincent.danno@orange.com>
Tue, 1 Jun 2021 19:26:51 +0000
(21:26 +0200)
committer
Cé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
patch
|
blob
|
history
diff --git
a/xtesting/core/feature.py
b/xtesting/core/feature.py
index
b41519d
..
5a02bb6
100644
(file)
--- 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"]