##// END OF EJS Templates
tests: monkeypatch `util.get_password()` to avoid deadlocks on Windows...
Matt Harbison -
r48103:5ac0f2a8 stable
parent child Browse files
Show More
@@ -192,10 +192,10 b' test http authentication'
192 $ cat pid >> $DAEMON_PIDS
192 $ cat pid >> $DAEMON_PIDS
193
193
194 $ cat << EOF > get_pass.py
194 $ cat << EOF > get_pass.py
195 > import getpass
195 > from mercurial import util
196 > def newgetpass(arg):
196 > def newgetpass():
197 > return "pass"
197 > return "pass"
198 > getpass.getpass = newgetpass
198 > util.get_password = newgetpass
199 > EOF
199 > EOF
200
200
201 $ hg id http://localhost:$HGPORT2/
201 $ hg id http://localhost:$HGPORT2/
@@ -181,10 +181,10 b' test http authentication'
181 $ cat pid >> $DAEMON_PIDS
181 $ cat pid >> $DAEMON_PIDS
182
182
183 $ cat << EOF > get_pass.py
183 $ cat << EOF > get_pass.py
184 > import getpass
184 > from mercurial import util
185 > def newgetpass(arg):
185 > def newgetpass():
186 > return "pass"
186 > return "pass"
187 > getpass.getpass = newgetpass
187 > util.get_password = newgetpass
188 > EOF
188 > EOF
189
189
190 $ hg id http://localhost:$HGPORT2/
190 $ hg id http://localhost:$HGPORT2/
@@ -425,10 +425,10 b' a large file from the server rather than'
425 > -d -p $HGPORT --pid-file hg.pid -A access.log
425 > -d -p $HGPORT --pid-file hg.pid -A access.log
426 $ cat hg.pid >> $DAEMON_PIDS
426 $ cat hg.pid >> $DAEMON_PIDS
427 $ cat << EOF > get_pass.py
427 $ cat << EOF > get_pass.py
428 > import getpass
428 > from mercurial import util
429 > def newgetpass(arg):
429 > def newgetpass():
430 > return "pass"
430 > return "pass"
431 > getpass.getpass = newgetpass
431 > util.get_password = newgetpass
432 > EOF
432 > EOF
433 $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \
433 $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \
434 > http://user@localhost:$HGPORT credentialclone
434 > http://user@localhost:$HGPORT credentialclone
General Comments 0
You need to be logged in to leave comments. Login now