'Set up the desired directory to save test output.'

def _create_saved_output_dir(self):

    if self.saved_output_dir:
        try:
            if (not os.path.exists(self.saved_output_dir)):
                os.makedirs(self.saved_output_dir)
        except Exception as exc:
            log.error('unable    to    create    saved    files    directory    "%s":    %s', self.saved_output_dir, exc, exc_info=True)
            self.saved_output_dir = None
