From: Jiri Pirko <jiri(a)mellanox.com>
Similar to "expected". But that for some odd reason does not accept
bool, but rather "pass" of "fail".
Signed-off-by: Jiri Pirko <jiri(a)mellanox.com>
---
lnst/Controller/Task.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 48aa0fe..7f9dc8e 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -236,6 +236,8 @@ class HostAPI(object):
raise TaskError(msg)
cmd["expect"] = argval == "pass"
+ elif arg == "fail_expected":
+ cmd["expect"] = not argval
elif arg == "timeout":
try:
cmd["timeout"] = int(argval)
--
2.4.3