예제 #1
0
파일: __init__.py 프로젝트: bryson/salt
def run_tests(*test_cases, **kwargs):
    '''
    Run unit tests for the chosen test cases.

    :param test_cases: The list of test cases to execute
    :type  test_cases: ``list`` of :class:`TestCase`
    '''
    parser = SaltTestcaseParser()
    parser.parse_args()
    for case in test_cases:
        if parser.run_testcase(case) is False:
            parser.finalize(1)
    parser.finalize(0)
예제 #2
0
파일: __init__.py 프로젝트: ritazh/salt-1
def run_tests(*test_cases, **kwargs):
    '''
    Run unit tests for the chosen test cases.

    :param test_cases: The list of test cases to execute
    :type  test_cases: ``list`` of :class:`TestCase`
    '''
    parser = SaltTestcaseParser()
    parser.parse_args()
    for case in test_cases:
        if parser.run_testcase(case) is False:
            parser.finalize(1)
예제 #3
0
파일: __init__.py 프로젝트: tligda/salt
 def run_testcase(self, testcase, needs_daemon=True):  # pylint: disable=W0221
     if needs_daemon:
         print(' * Setting up Salt daemons to execute tests')
         with TestDaemon(self):
             return SaltTestcaseParser.run_testcase(self, testcase)
     return SaltTestcaseParser.run_testcase(self, testcase)
예제 #4
0
파일: __init__.py 프로젝트: bemehow/salt
 def run_testcase(self, testcase, needs_daemon=True):  # pylint: disable=W0221
     if needs_daemon:
         print(' * Setting up Salt daemons to execute tests')
         with TestDaemon(self):
             return SaltTestcaseParser.run_testcase(self, testcase)
     return SaltTestcaseParser.run_testcase(self, testcase)
예제 #5
0
 def run_testcase(self, testcase, needs_daemon=True):
     if needs_daemon:
         print('Setting up Salt daemons to execute tests')
         with TestDaemon(self):
             return SaltTestcaseParser.run_testcase(self, testcase)
     return SaltTestcaseParser.run_testcase(self, testcase)
예제 #6
0
 def run_testcase(self, testcase, needs_daemon=True):
     if needs_daemon:
         print('Setting up Salt daemons to execute tests')
         with TestDaemon(self):
             return SaltTestcaseParser.run_testcase(self, testcase)
     return SaltTestcaseParser.run_testcase(self, testcase)