Lines Matching +full:test +full:- +full:exclude
3 # Use of this source code is governed by a BSD-style license that can be
8 test_item: extends the basic test tuple to add include/exclude attributes and
19 """Adds machine verification logic to the basic test tuple.
22 extended form ('testname', {args}, {'include': [], 'exclude': [],
23 'attributes': []}) where include and exclude are lists of host attribute
25 labels in include and must not have any of the labels in exclude to be valid
26 for the test. Attributes strings can include reboot_before, reboot_after,
34 test_name: string, name of test to execute.
35 test_args: dictionary, arguments to pass into test.
36 test_attribs: Dictionary of test attributes. Valid keys are:
37 include - labels a machine must have to run a test.
38 exclude - labels preventing a machine from running a test.
39 attributes - reboot before/after test, run test as server job.
50 self.exc_set = set(test_attribs.get('exclude', []))
54 """Return an info string of this test."""
60 msg += ' exclude=%s' % [s for s in self.exc_set]
66 """Check if this test can run on machine with machine_attributes.
68 If the test has include attributes, a candidate machine must have all
71 If the test has exclude attributes, a candidate machine cannot have any
78 True/False if the machine is valid for this test.
89 """Runs the test on the client using autotest.
107 logging.error('No Server_Job instance provided for test '