~dpigott/lava-dispatcher/increase-timeout

« back to all changes in this revision

Viewing changes to lava_dispatcher/actions/lava-android-test.py

  • Committer: Michael Hudson-Doyle
  • Date: 2012-03-13 03:47:38 UTC
  • mfrom: (240.3.10 more-validation)
  • Revision ID: michael.hudson@linaro.org-20120313034738-c2wmuw7dw8s0kzv8
make the validation of the job file that happens before a job starts much more rigorous

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
class cmd_lava_android_test_run(AndroidTestAction):
38
38
 
 
39
    parameters_schema = {
 
40
        'type': 'object',
 
41
        'properties': {
 
42
            'test_name': {'type': 'string'},
 
43
            'timeout': {'type': 'integer', 'optional': True},
 
44
            },
 
45
        'additionalProperties': False,
 
46
        }
 
47
 
39
48
    def test_name(self, test_name, timeout=-1):
40
49
        return super(cmd_lava_android_test_run, self).test_name() + \
41
50
               ' (%s)' % test_name
61
70
    """
62
71
    lava-test deployment to test image rootfs by chroot
63
72
    """
 
73
 
 
74
    parameters_schema = {
 
75
        'type': 'object',
 
76
        'properties': {
 
77
            'tests': {'type': 'array', 'items': {'type': 'string'}},
 
78
            'option': {'type': 'string', 'optional': True},
 
79
            'timeout': {'type': 'integer', 'optional': True},
 
80
            },
 
81
        'additionalProperties': False,
 
82
        }
 
83
 
64
84
    def run(self, tests, option=None, timeout=2400):
65
85
        self.check_lava_android_test_installed()
66
86
        with self.client.android_tester_session() as session: