tests/test-bad-pull.t
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 31 Mar 2020 15:11:33 +0530
changeset 44629 d37975386798
parent 39707 5abc47d4ca6b
child 45839 ebee234d952a
permissions -rw-r--r--
chgserver: update the umask cache before each run posix.py uses a global variable to store the umask value resulting in caching of it when using chg. We need to update it before each command run as the umask can change between commands. This fixes test-inherit-mode.t with chg.

#require serve

  $ hg clone http://localhost:$HGPORT/ copy
  abort: * (glob)
  [255]

  $ test -d copy
  [1]

  $ "$PYTHON" "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
  $ cat dumb.pid >> $DAEMON_PIDS
  $ hg clone http://localhost:$HGPORT/foo copy2
  abort: HTTP Error 404: * (glob)
  [255]
  $ killdaemons.py