예제 #1
0
파일: base.py 프로젝트: zhanglGitHub/kitty
    def set_test_list(self, test_list_str=''):
        '''
        :param test_list_str: listing of the test to execute

        The test list should be a comma-delimited string, and each element
        should be one of the following forms:

        '-x' - run from test 0 to test x
        'x-' - run from test x to the end
        'x' - run test x
        'x-y' - run from test x to test y

        To execute all tests, pass None or an empty string
        '''
        self.session_info.test_list_str = test_list_str
        self._test_list = RangesList(test_list_str)
예제 #2
0
 def _testExceptionWithLast(self, test_str, last):
     r = RangesList(test_str)
     with self.assertRaises(KittyException):
         r.set_last(last)
예제 #3
0
 def _testSimpleWithLast(self, test_str, expected_list, last):
     r = RangesList(test_str)
     r.set_last(last)
     self._do_tests(r, expected_list)
예제 #4
0
 def _testException(self, test_str):
     with self.assertRaises(KittyException):
         RangesList(test_str)
예제 #5
0
 def _testSimpleNoLast(self, test_str, expected_list):
     r = RangesList(test_str)
     self._do_tests(r, expected_list)