'Determine the directory for storing results. On a client this is
always <autodir>/results/<tag>, where tag is passed in on the command
line as an option.'

def _find_resultdir(self, options):

    output_dir_config = settings.get_value('CLIENT', 'output_dir', default='')
    if options.output_dir:
        basedir = options.output_dir
    elif output_dir_config:
        basedir = output_dir_config
    else:
        basedir = self.autodir
    return os.path.join(basedir, 'results', options.tag)
