Lines Matching defs:comment
58 def ksft_eq(a, b, comment=""):
61 _fail("Check failed", a, "!=", b, comment)
64 def ksft_ne(a, b, comment=""):
67 _fail("Check failed", a, "==", b, comment)
70 def ksft_true(a, comment=""):
72 _fail("Check failed", a, "does not eval to True", comment)
75 def ksft_not_none(a, comment=""):
77 _fail("Check failed", a, "is None", comment)
80 def ksft_in(a, b, comment=""):
82 _fail("Check failed", a, "not in", b, comment)
85 def ksft_not_in(a, b, comment=""):
87 _fail("Check failed", a, "in", b, comment)
90 def ksft_is(a, b, comment=""):
92 _fail("Check failed", a, "is not", b, comment)
95 def ksft_ge(a, b, comment=""):
97 _fail("Check failed", a, "<", b, comment)
100 def ksft_gt(a, b, comment=""):
102 _fail("Check failed", a, "<=", b, comment)
105 def ksft_lt(a, b, comment=""):
107 _fail("Check failed", a, ">=", b, comment)
128 def ksft_busy_wait(cond, sleep=0.005, deadline=1, comment=""):
134 _fail("Waiting for condition timed out", comment)
139 def ktap_result(ok, cnt=1, case="", comment=""):
151 if comment:
152 res += " # " + comment
250 comment = ""
256 comment = "SKIP " + str(e)
259 comment = "XFAIL " + str(e)
276 ktap_result(KSFT_RESULT, cnt, case, comment=comment)