'Parse a string containing the options for a test run'

def parse_options_string(self, options_string):

    parameters = options_string.split('    ')
    suite = 'all'
    if ('--system=lms' in parameters):
        suite = 'lms'
    elif ('--system=common' in parameters):
        suite = 'common'
    coverage = ('--coverage' in parameters)
    port = None
    if ('--port=9999' in parameters):
        port = 9999
    return {'suite': suite, 'coverage': coverage, 'port': port}
