comparison tests/test-clone-uncompressed.t @ 34483:a6d95a8b7243

serve: make tests compatible with chg chg only supports 'hg serve' when the options to the serve command follow the 'hg serve'. For example, 'hg -R <repo> serve ..' is unsupported. This leads to issues with chg running for the following tests: - test-bundle2-exchange.t - test-clone-uncompressed.t - test-hgweb-csp.t - test-http-bad-server.t - test-http-bundle1.t - test-http-protocol.t - test-http.t There was an effort made earlier to fix this issue for chg and the tests were fixed to confirm to the compatible pattern. But the new tests did not take care of the same and hence, fail. Hopefully, there will be continuous build setup for chg after all tests are made compatible with chg so that we can avoid such issues. Test Plan: Ran the aforementioned tests with and without '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D946
author Saurabh Singh <singhsrb@fb.com>
date Wed, 04 Oct 2017 18:39:26 -0700
parents fffd3369aa83
children eb586ed5d8ce
comparison
equal deleted inserted replaced
34482:75de5d456b60 34483:a6d95a8b7243
72 $ killdaemons.py 72 $ killdaemons.py
73 73
74 Streaming of secrets can be overridden by server config 74 Streaming of secrets can be overridden by server config
75 75
76 $ cd server 76 $ cd server
77 $ hg --config server.uncompressedallowsecret=true serve -p $HGPORT -d --pid-file=hg.pid 77 $ hg serve --config server.uncompressedallowsecret=true -p $HGPORT -d --pid-file=hg.pid
78 $ cat hg.pid > $DAEMON_PIDS 78 $ cat hg.pid > $DAEMON_PIDS
79 $ cd .. 79 $ cd ..
80 80
81 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed 81 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
82 streaming all changes 82 streaming all changes
88 $ killdaemons.py 88 $ killdaemons.py
89 89
90 Verify interaction between preferuncompressed and secret presence 90 Verify interaction between preferuncompressed and secret presence
91 91
92 $ cd server 92 $ cd server
93 $ hg --config server.preferuncompressed=true serve -p $HGPORT -d --pid-file=hg.pid 93 $ hg serve --config server.preferuncompressed=true -p $HGPORT -d --pid-file=hg.pid
94 $ cat hg.pid > $DAEMON_PIDS 94 $ cat hg.pid > $DAEMON_PIDS
95 $ cd .. 95 $ cd ..
96 96
97 $ hg clone -U http://localhost:$HGPORT preferuncompressed-secret 97 $ hg clone -U http://localhost:$HGPORT preferuncompressed-secret
98 requesting all changes 98 requesting all changes
104 $ killdaemons.py 104 $ killdaemons.py
105 105
106 Clone not allowed when full bundles disabled and can't serve secrets 106 Clone not allowed when full bundles disabled and can't serve secrets
107 107
108 $ cd server 108 $ cd server
109 $ hg --config server.disablefullbundle=true serve -p $HGPORT -d --pid-file=hg.pid 109 $ hg serve --config server.disablefullbundle=true -p $HGPORT -d --pid-file=hg.pid
110 $ cat hg.pid > $DAEMON_PIDS 110 $ cat hg.pid > $DAEMON_PIDS
111 $ cd .. 111 $ cd ..
112 112
113 $ hg clone --stream http://localhost:$HGPORT secret-full-disabled 113 $ hg clone --stream http://localhost:$HGPORT secret-full-disabled
114 warning: stream clone requested but server has them disabled 114 warning: stream clone requested but server has them disabled
152 152
153 $ hg init repo 153 $ hg init repo
154 $ touch repo/f1 154 $ touch repo/f1
155 $ $TESTDIR/seq.py 50000 > repo/f2 155 $ $TESTDIR/seq.py 50000 > repo/f2
156 $ hg -R repo ci -Aqm "0" 156 $ hg -R repo ci -Aqm "0"
157 $ hg -R repo serve -p $HGPORT1 -d --pid-file=hg.pid --config extensions.delayer=delayer.py 157 $ hg serve -R repo -p $HGPORT1 -d --pid-file=hg.pid --config extensions.delayer=delayer.py
158 $ cat hg.pid >> $DAEMON_PIDS 158 $ cat hg.pid >> $DAEMON_PIDS
159 159
160 clone while modifying the repo between stating file with write lock and 160 clone while modifying the repo between stating file with write lock and
161 actually serving file content 161 actually serving file content
162 162