예제 #1
0
      exclusive_wc_locks = 1
    else:
      raise getopt.GetoptError

  if log_to_stdout:
    logfile = None
    faillogfile = None
  else:
    logfile = os.path.abspath('tests.log')
    faillogfile = os.path.abspath('fails.log')

  th = TestHarness(args[0], args[1], logfile, faillogfile,
                   base_url, fs_type, http_library, server_minor_version,
                   verbose, cleanup, enable_sasl, parallel, config_file,
                   fsfs_sharding, fsfs_packing, list_tests,
                   mode_filter=mode_filter, milestone_filter=milestone_filter,
                   set_log_level=set_log_level, ssl_cert=ssl_cert,
                   http_proxy=http_proxy,
                   http_proxy_username=http_proxy_username,
                   http_proxy_password=http_proxy_password,
                   exclusive_wc_locks=exclusive_wc_locks)

  failed = th.run(args[2:])
  if failed:
    sys.exit(1)


# Run main if not imported as a module
if __name__ == '__main__':
  main()
예제 #2
0
  if log_to_stdout:
    logfile = None
    faillogfile = None
  else:
    logfile = os.path.abspath('tests.log')
    faillogfile = os.path.abspath('fails.log')

  th = TestHarness(args[0], args[1], logfile, faillogfile,
                   base_url, fs_type, http_library, server_minor_version,
                   verbose, cleanup, enable_sasl, parallel, config_file,
                   fsfs_sharding, fsfs_packing, list_tests,
                   mode_filter=mode_filter, milestone_filter=milestone_filter,
                   set_log_level=set_log_level, ssl_cert=ssl_cert,
                   http_proxy=http_proxy,
                   http_proxy_username=http_proxy_username,
                   http_proxy_password=http_proxy_password,
                   httpd_version=httpd_version,
                   exclusive_wc_locks=exclusive_wc_locks,
                   memcached_server=memcached_server,
                   skip_c_tests=skip_c_tests,
                   dump_load_cross_check=dump_load_cross_check)

  failed = th.run(args[2:])
  if failed:
    sys.exit(1)


# Run main if not imported as a module
if __name__ == '__main__':
  main()