Skip to content
Snippets Groups Projects
  1. Feb 16, 2017
    • Jun Wu's avatar
      dumbhttp: use IPv6 if HGIPV6 is set to 1 · d05fefbb5ab3
      Jun Wu authored
      This will fix flaky tests using dumbhttp.
      
      The patch was tested on gcc112.fsffrance.org using the following command:
      
        ./run-tests.py -j 40 --runs-per-test 120 test-bundle2-remote-changegroup.t
      d05fefbb5ab3
  2. Oct 15, 2016
    • Yuya Nishihara's avatar
      server: move cmdutil.service() to new module (API) · d9d8d78e6bc9
      Yuya Nishihara authored
      And call it runservice() because I'll soon add createservice().
      
      The main reason I'm going to introduce the 'server' module is to solve
      future dependency cycle between chgserver.py and commandserver.py.
      
      The 'server' module sits at the same layer as the cmdutil. I believe it's
      generally good to get rid of things from the big cmdutil module.
      d9d8d78e6bc9
  3. Jul 13, 2016
    • Pulkit Goyal's avatar
      py3: conditionalize BaseHTTPServer, SimpleHTTPServer and CGIHTTPServer import · 075146e85bb6
      Pulkit Goyal authored
      The BaseHTTPServer, SimpleHTTPServer and CGIHTTPServer has been merged into
      http.server in python 3. All of them has been merged as util.httpserver to use
      in both python 2 and 3. This patch adds a regex to check-code to warn against
      the use of BaseHTTPServer. Moreover this patch also includes updates to lower
      part of test-check-py3-compat.t which used to remain unchanged.
      075146e85bb6
  4. Apr 03, 2016
    • Yuya Nishihara's avatar
      tests: sort import lines in dumbhttp.py · 9366b18ba103
      Yuya Nishihara authored
      This series is an attempt to enable import-checker.py for tests/**.py, but
      it turned out not easy. Since many tests have been ported to absolute_import
      without the coverage, import-checker.py reports a lot of errors right now.
      
      Should we enable import-checker.py without fixing all of them so that we
      won't get more errors?
      9366b18ba103
  5. Mar 09, 2016
    • Jun Wu's avatar
      serve: accept multiple values for --daemon-postexec · c90cfe76e024
      Jun Wu authored
      The next patch will add another postexec command: chdir, which can be used
      together with unlink. This patch changes the option type of --daemon-postexec
      from string to list to accept multiple commands. The error message of invalid
      --daemon-postexec value is also changed to include the actual invalid value.
      c90cfe76e024
  6. Feb 22, 2016
    • Jun Wu's avatar
      serve: rename --daemon-pipefds to --daemon-postexec (BC) · 7623ba92af72
      Jun Wu authored
      Initially we use --daemon-pipefds to pass file descriptors for synchronization.
      Later, in order to support Windows, --daemon-pipefds is changed to accept a
      file path to unlink instead. The name is outdated since then.
      
      chg client is designed to use flock, which will be held before starting a
      server and until the client actually connects to the server it started. The
      unlink synchronization approach is not so helpful in this case.
      
      To address the issues, this patch renames pipefds to postexec and the following
      patch will allow the value of --daemon-postexec to be things like
      'unlink:/path/to/file' or 'none'.
      7623ba92af72
  7. Dec 07, 2015
  8. Nov 02, 2014
  9. Oct 16, 2014
    • Mike Hommey's avatar
      tests: pull common http server setup out of individual tests · 10116463b0b1
      Mike Hommey authored
      There are currently two different tests using roughly the same code to
      create temporary scripts acting as HTTP servers. As there is going to
      be at least one more in an upcoming change, factor those out in a
      standalone dumbhttp.py script.
      10116463b0b1
Loading