Lines Matching full:comment
115 def ksft_eq(a, b, comment=""):
118 _fail("Check failed", a, "!=", b, comment)
121 def ksft_ne(a, b, comment=""):
124 _fail("Check failed", a, "==", b, comment)
127 def ksft_true(a, comment=""):
129 _fail("Check failed", a, "does not eval to True", comment)
132 def ksft_not_none(a, comment=""):
134 _fail("Check failed", a, "is None", comment)
137 def ksft_in(a, b, comment=""):
139 _fail("Check failed", a, "not in", b, comment)
142 def ksft_not_in(a, b, comment=""):
144 _fail("Check failed", a, "in", b, comment)
147 def ksft_is(a, b, comment=""):
149 _fail("Check failed", a, "is not", b, comment)
152 def ksft_ge(a, b, comment=""):
154 _fail("Check failed", a, "<", b, comment)
157 def ksft_gt(a, b, comment=""):
159 _fail("Check failed", a, "<=", b, comment)
162 def ksft_lt(a, b, comment=""):
164 _fail("Check failed", a, ">=", b, comment)
185 def ksft_busy_wait(cond, sleep=0.005, deadline=1, comment=""):
191 _fail("Waiting for condition timed out", comment)
196 def ktap_result(ok, cnt=1, case_name="", comment=""):
208 if comment:
209 res += " # " + comment
211 if comment.startswith(("SKIP", "XFAIL")):
415 comment = ""
422 comment = "SKIP " + str(e)
425 comment = "XFAIL " + str(e)
453 ktap_result(KSFT_RESULT, cnt, name, comment=comment)