'Call the script main and return the arguments to driver.'

def call_main(self, args, environ):

    result = {}
    def check(driver, args):
        (result['cluster'], result['scenario_factory'], result['operation_factory'], result['metric_factory'], result['num_samples'], result['result'], result['output']) = args
    yaml = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'benchmark.yml')
    argv = (['benchmark', '--config', yaml] + args)
    main(argv, environ, react=check)
    return result
