Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
 def _testExceptionWithLast(self, test_str, last):
     r = RangesList(test_str)
     with self.assertRaises(KittyException):
         r.set_last(last)
Ejemplo n.º 3
0
 def _testSimpleWithLast(self, test_str, expected_list, last):
     r = RangesList(test_str)
     r.set_last(last)
     self._do_tests(r, expected_list)
Ejemplo n.º 4
0
 def _testException(self, test_str):
     with self.assertRaises(KittyException):
         RangesList(test_str)
Ejemplo n.º 5
0
 def _testSimpleNoLast(self, test_str, expected_list):
     r = RangesList(test_str)
     self._do_tests(r, expected_list)