Пример #1
0
    def run(self, test_run, test_set, dbpath,
            ostf_os_access_creds=None,
            tests=None, token=None):

        if not ostf_os_access_creds:
            ostf_os_access_creds = dict()
        tests = tests or test_run.enabled_tests
        if tests:
            argv_add = [nose_utils.modify_test_name_for_nose(test)
                        for test in tests]
        else:
            argv_add = [test_set.test_path] + test_set.additional_arguments

        results_log = ResultsLogger(test_set.id, test_run.cluster_id)

        lock_path = cfg.CONF.adapter.lock_dir
        test_run.pid = nose_utils.run_proc(self._run_tests,
                                           lock_path,
                                           dbpath,
                                           test_run.id,
                                           test_run.cluster_id,
                                           ostf_os_access_creds,
                                           argv_add,
                                           token,
                                           results_log).pid
Пример #2
0
    def run(self, test_run, test_set, tests=None):
        tests = tests or test_run.enabled_tests
        if tests:
            argv_add = [nose_utils.modify_test_name_for_nose(test) for test in
                        tests]
        else:
            argv_add = [test_set.test_path] + test_set.additional_arguments

        self._named_threads[test_run.id] = nose_utils.run_proc(
            self._run_tests, test_run.id, test_run.cluster_id, argv_add)
Пример #3
0
    def run(self, test_run, test_set, tests=None):
        tests = tests or test_run.enabled_tests
        if tests:
            argv_add = [
                nose_utils.modify_test_name_for_nose(test) for test in tests
            ]
        else:
            argv_add = [test_set.test_path] + test_set.additional_arguments

        self._named_threads[test_run.id] = nose_utils.run_proc(
            self._run_tests, test_run.id, test_run.cluster_id, argv_add)