parameters: (dirName)
return_statement: return
docstring: Populates TEST_SUITE_SECTIONS with ES5 test directories based
      upon the number of test files per directory.
docstring_summary: Populates TEST_SUITE_SECTIONS with ES5 test directories based
      upon the number of test files per directory.
docstring_tokens: Populates TEST_SUITE_SECTIONS with ES5 test directories based upon the number of test files per directory .
function: def dirWalker(dirName):
      '''
      Populates TEST_SUITE_SECTIONS with ES5 test directories based
      upon the number of test files per directory.
      '''
      global TEST_SUITE_SECTIONS
      #First check to see if it has test files directly inside it
      temp = [os.path.join(dirName, x) for x in os.listdir(dirName) \
                  if not os.path.isdir(os.path.join(dirName, x))]
      if len(temp)!=0:
          TEST_SUITE_SECTIONS.append(dirName)
          return
  
      #Next check to see if all *.js files under this directory exceed our max
      #for a JSON file
      temp = getJSCount(dirName)
      if temp==0:
          print "ERROR:  expected there to be JavaScript tests under dirName!"
          sys.exit(1)
      #TODO - commenting out this elif/else clause seems to be causing *.json
      #naming conflicts WRT Sputnik test dirs.
      # elif temp < MAX_CASES_PER_JSON:
      TEST_SUITE_SECTIONS.append(dirName)
      return
function_tokens: def dirWalker ( dirName ) : global TEST_SUITE_SECTIONS #First check to see if it has test files directly inside it temp = [ os . path . join ( dirName , x ) for x in os . listdir ( dirName ) if not os . path . isdir ( os . path . join ( dirName , x ) ) ] if len ( temp ) != 0 : TEST_SUITE_SECTIONS . append ( dirName ) return #Next check to see if all *.js files under this directory exceed our max #for a JSON file temp = getJSCount ( dirName ) if temp == 0 : print "ERROR:  expected there to be JavaScript tests under dirName!" sys . exit ( 1 ) #TODO - commenting out this elif/else clause seems to be causing *.json #naming conflicts WRT Sputnik test dirs. # elif temp < MAX_CASES_PER_JSON: TEST_SUITE_SECTIONS . append ( dirName ) return