'Bootstrap autotest by fetching the control file first and pass it back
Currently this relies on a harness to retrieve the file'

def bootstrap(self, args, options):

    def harness_env():
        try:
            return os.environ['AUTOTEST_HARNESS']
        except KeyError:
            return None
    def harness_args_env():
        try:
            return os.environ['AUTOTEST_HARNESS_ARGS']
        except KeyError:
            return None
    class stub_job(object, ):
        def config_set(self, name, value):
            return
    if ((not options.harness) and (not harness_env())):
        self.help()
    if options.harness:
        harness_name = options.harness
    elif harness_env():
        harness_name = harness_env()
        options.harness = harness_name
    if options.harness_args:
        harness_args = options.harness_args
    else:
        harness_args = harness_args_env()
        options.harness_args = harness_args
    myjob = stub_job()
    try:
        myharness = harness.select(harness_name, myjob, harness_args)
        if (not getattr(myharness, 'bootstrap')):
            raise error.HarnessError('Does    not    support    bootstrapping\n')
    except Exception as error_detail:
        if DEBUG:
            raise
        sys.stderr.write(('Harness    %s    failed    to    initialize    ->    %s\n' % (harness_name, error_detail)))
        self.help()
        sys.exit(1)
    try:
        control = myharness.bootstrap(FETCHDIRTEST)
    except Exception as ex:
        sys.stderr.write(('bootstrap    failed    ->    %s\n' % ex))
        raise SystemExit(1)
    logging.debug(('bootstrap    passing    control    file    %s    to    run' % control))
    if (not control):
        raise SystemExit(0)
    args.append(control)
    return args
