def update_samples(autotest_dir, add_noncompliant, add_experimental):
 sample_path = os.path.join(autotest_dir, 'server/samples')
 if os.path.exists(sample_path):
  logging.info('Scanning %s', sample_path)
  tests = get_tests_from_fs(sample_path, '.*srv$', add_noncompliant=add_noncompliant)
  update_tests_in_db(tests, add_experimental=add_experimental, add_noncompliant=add_noncompliant, autotest_dir=autotest_dir)

def update_samples ( autotest_dir , add_noncompliant , add_experimental ) : sample_path = os . path . join ( autotest_dir , 'server/samples' ) if os . path . exists ( sample_path ) : logging . info ( 'Scanning %s' , sample_path ) tests = get_tests_from_fs ( sample_path , '.*srv$' , add_noncompliant = add_noncompliant ) update_tests_in_db ( tests , add_experimental = add_experimental , add_noncompliant = add_noncompliant , autotest_dir = autotest_dir )
add only sample tests to the database from the filesystem .