def update_all(autotest_dir, add_noncompliant, add_experimental):
 for path in ['server/tests', 'server/site_tests', 'client/tests', 'client/site_tests', 'client/samples']:
  test_path = os.path.join(autotest_dir, path)
  if (not os.path.exists(test_path)):
   continue
  logging.info('Scanning %s', test_path)
  tests = []
  tests = get_tests_from_fs(test_path, '^control.*', add_noncompliant=add_noncompliant)
  update_tests_in_db(tests, add_experimental=add_experimental, add_noncompliant=add_noncompliant, autotest_dir=autotest_dir)
 test_suite_path = os.path.join(autotest_dir, 'test_suites')
 if os.path.exists(test_suite_path):
  logging.info('Scanning %s', test_suite_path)
  tests = get_tests_from_fs(test_suite_path, '.*', add_noncompliant=add_noncompliant)
  update_tests_in_db(tests, add_experimental=add_experimental, add_noncompliant=add_noncompliant, autotest_dir=autotest_dir)
 profilers_path = os.path.join(autotest_dir, 'client/profilers')
 if os.path.exists(profilers_path):
  logging.info('Scanning %s', profilers_path)
  profilers = get_tests_from_fs(profilers_path, '.*py$')
  update_profilers_in_db(profilers, add_noncompliant=add_noncompliant, description='NA')
 db_clean_broken(autotest_dir)

def update_all ( autotest_dir , add_noncompliant , add_experimental ) : for path in [ 'server/tests' , 'server/site_tests' , 'client/tests' , 'client/site_tests' , 'client/samples' ] : test_path = os . path . join ( autotest_dir , path ) if ( not os . path . exists ( test_path ) ) : continue logging . info ( 'Scanning %s' , test_path ) tests = [ ] tests = get_tests_from_fs ( test_path , '^control.*' , add_noncompliant = add_noncompliant ) update_tests_in_db ( tests , add_experimental = add_experimental , add_noncompliant = add_noncompliant , autotest_dir = autotest_dir ) test_suite_path = os . path . join ( autotest_dir , 'test_suites' ) if os . path . exists ( test_suite_path ) : logging . info ( 'Scanning %s' , test_suite_path ) tests = get_tests_from_fs ( test_suite_path , '.*' , add_noncompliant = add_noncompliant ) update_tests_in_db ( tests , add_experimental = add_experimental , add_noncompliant = add_noncompliant , autotest_dir = autotest_dir ) profilers_path = os . path . join ( autotest_dir , 'client/profilers' ) if os . path . exists ( profilers_path ) : logging . info ( 'Scanning %s' , profilers_path ) profilers = get_tests_from_fs ( profilers_path , '.*py$' ) update_profilers_in_db ( profilers , add_noncompliant = add_noncompliant , description = 'NA' ) db_clean_broken ( autotest_dir )
install all available updates .