def load_all_client_tests(options):
 local_namespace = locals().copy()
 global_namespace = globals().copy()
 all_tests = []
 broken_tests = []
 for test_base_dir in ['tests', 'site_tests']:
  testdir = os.path.join(os.environ['AUTODIR'], test_base_dir)
  for test_name in os.listdir(testdir):
   client_test = init_test(options, os.path.join(testdir, test_name))
   if client_test:
    all_tests.append(client_test)
   else:
    broken_tests.append(test_name)
 if ('CUSTOM_DIR' in os.environ):
  testdir = os.environ['CUSTOM_DIR']
  for test_name in os.listdir(testdir):
   client_test = init_test(options, os.path.join(testdir, test_name))
   if client_test:
    all_tests.append(client_test)
   else:
    broken_tests.append(test_name)
 return (all_tests, broken_tests)

def load_all_client_tests ( options ) : local_namespace = locals ( ) . copy ( ) global_namespace = globals ( ) . copy ( ) all_tests = [ ] broken_tests = [ ] for test_base_dir in [ 'tests' , 'site_tests' ] : testdir = os . path . join ( os . environ [ 'AUTODIR' ] , test_base_dir ) for test_name in os . listdir ( testdir ) : client_test = init_test ( options , os . path . join ( testdir , test_name ) ) if client_test : all_tests . append ( client_test ) else : broken_tests . append ( test_name ) if ( 'CUSTOM_DIR' in os . environ ) : testdir = os . environ [ 'CUSTOM_DIR' ] for test_name in os . listdir ( testdir ) : client_test = init_test ( options , os . path . join ( testdir , test_name ) ) if client_test : all_tests . append ( client_test ) else : broken_tests . append ( test_name ) return ( all_tests , broken_tests )
load and instantiate all client tests .