configuration

view tests/example.py @ 67:c831eb58fb52

minor fixes
author Jeff Hammel <jhammel@mozilla.com>
date Wed Mar 28 09:03:02 2012 -0700 (13 months ago)
parents 73e72a764c3a
children 92c11cd1d27e
line source
1 #!/usr/bin/env python
3 from configuration import Configuration
5 class ExampleConfiguration(Configuration):
6 """example configuration instance"""
7 options = {
8 'activeTests': {'type': list,
9 'required': "No tests specified; please specify --activeTests",
10 'help': 'Specify tests to run',
11 'flags': ['-a', '--activeTests']}, # command line flags
12 'title': {'help': 'talos run title'},
13 'browser_path': {'required': True,
14 'flags': ['-e', '--executablePath'],
15 'help': 'path to firefox'},
16 'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.",
17 'type': bool},
18 'test_timeout': {'type': int,
19 'help': "Time to wait for the browser to output to the log file",
20 'default': 1200},
21 }
23 if __name__ == '__main__':
24 from pprint import pprint
25 options, args = ExampleConfiguration().parse_args()
26 pprint(options.__dict__)