From: Jiri Pirko jiri@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@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)
On Fri, Dec 18, 2015 at 10:13:04AM +0100, Jiri Pirko wrote:
From: Jiri Pirko jiri@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@mellanox.com
Acked-by: Ondrej Lichtner olichtne@redhat.com
lnst-developers@lists.fedorahosted.org