コード例 #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
ファイル: __init__.py プロジェクト: joehealy/pkg-salt
 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)