Lines Matching defs:test
13 # The test is skipped in case the attribute is not available.
119 if not test(stderr != "", "%s is unsplittable" % port.name):
137 test(stderr == "", "Unsplit port %s" % port)
169 def test(cond, msg):
219 test(exists_and_lanes(new_split_group, lanes/k, dev),
227 Determine if test should be skipped by checking:
234 skip_reason = "{} not found in devlink output, test skipped".format(target_property)
239 skip_reason = 'devlink output is empty, test skipped'
247 parser = argparse.ArgumentParser(description='A test for port splitting.')
249 help='The devlink handle of the device under test. ' +
282 # If max lanes is 0, do not test port splitting at all
288 test(not get_split_ability(port),
295 test(get_split_ability(port),