Lines Matching refs:err_msg
132 def log_test(test_name, err_msg=None): argument
133 if err_msg:
134 print("\t%s" % err_msg)
205 err_msg = None
207 err_msg = "Incorrect pool size (got {}, expected {})".format(pool["size"], size)
209 … err_msg = "Incorrect pool threshold type (got {}, expected {})".format(pool["thtype"], thtype)
214 err_msg = "Other pool setup changed as well"
216 pool["sb"]), err_msg)
253 err_msg = None
255 err_msg = "No tc bind for port"
260 log_test("tc bind existence for port {} verification".format(port.name), err_msg)
275 err_msg = None
277 err_msg = "Incorrect pool (got {}, expected {})".format(tcbind["pool"], pool)
279 err_msg = "Incorrect threshold (got {}, expected {})".format(tcbind["threshold"], th)
284 err_msg = "Other tc bind setup changed as well"
287 tcbind["sb"]), err_msg)
325 err_msg = None
327 err_msg = "No port pool for port"
332 log_test("port pool existence for port {} verification".format(port.name), err_msg)
344 err_msg = None
346 err_msg = "Incorrect threshold (got {}, expected {})".format(portpool["threshold"], th)
351 err_msg = "Other port pool setup changed as well"
354 portpool["sb"]), err_msg)