From: Donghoon Shin Date: Thu, 22 Sep 2016 04:29:08 +0000 (+0900) Subject: Update docs X-Git-Tag: 0.3.3~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c1097ceb240df5e0fa21e08603c051a2b8ea177;p=tools%2Flitmus.git Update docs --- diff --git a/docs/source/conf.py b/docs/source/conf.py index 5cc665f..9122838 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -23,6 +23,8 @@ sys.path.insert(0,os.path.abspath('../..')) # -- General configuration ------------------------------------------------ +autoclass_content = 'both' + # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' diff --git a/litmus/core/manager.py b/litmus/core/manager.py index dc9b10b..55e1946 100644 --- a/litmus/core/manager.py +++ b/litmus/core/manager.py @@ -58,6 +58,11 @@ Lightweight test manager for tizen automated testing _remove_workingdir_at__del__ = False def __init__(self, *args, **kwargs): + """ + :param str topology: topology file path + :param str project_path: project path. If this is None then cwd will be used as project path + :param bool verbose: init logger to print all logs + """ super(manager, self).__init__() self.args = args self.kwargs = kwargs @@ -69,9 +74,9 @@ Lightweight test manager for tizen automated testing tp = _duts_ self._load_configs(tp) - if 'project_name' in self.kwargs: + if 'project_name' in self.kwargs and self.kwargs['project_name']: self._project_name = self.kwargs['project_name'] - if 'project_path' in self.kwargs: + if 'project_path' in self.kwargs and self.kwargs['project_path']: self._project_path = self.kwargs['project_path'] else: self._project_path = os.getcwd() @@ -80,6 +85,11 @@ Lightweight test manager for tizen automated testing if 'verbose' in self.kwargs and self.kwargs['verbose']: init_logger() + logging.debug('project name: {}'.format(self._project_name)) + logging.debug('project path: {}'.format(self._project_path)) + logging.debug('topology path: {}'.format(tp)) + logging.debug('='*52) + def __del__(self): if self._backup_cwd: os.chdir(self._backup_cwd) @@ -276,8 +286,9 @@ Lightweight test manager for tizen automated testing self._workingdir = workspace_path self._remove_workingdir_at__del__ = True logging.debug('working dir: {}'.format(self._workingdir)) - logging.debug('copy all files in project path to workingdir') - copy(self._project_path, os.curdir) + if self._project_path: + logging.debug('copy all files in project path to workingdir') + copy(self._project_path, os.curdir) except Exception as e: logging.debug(e) raise Exception('Can\'t init workingdir.')