Mercurial > hg
comparison tests/test-ssh-bundle1.t @ 40269:52b773f5e9a4
tests: replace `cd ..` with an absolute path in a couple ssh tests
These tests are broken under py3 on Windows to the point where the `cd ..` was
actually escaping into the system wide $TEMP. The subsequent `hg init` created
a repo there, and then added a local extension to the hgrc. This breaks every
single subsequent test when it tries to `hg init` in its $TESTTMP, and can't
load the localwrite.py extension. And since I botched this the first time and
replaced the wrong `cd ..`, this just replaces all of them. I've noticed test
garbage in $TEMP recently, and maybe this will help.
Perhaps `hg init` shouldn't load the config for the local repo, but this is an
easy enough workaround for now.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 13 Oct 2018 19:49:33 -0400 |
parents | 41263df08109 |
children | f6904d60fc21 |
comparison
equal
deleted
inserted
replaced
40268:9c4cbbb0fc51 | 40269:52b773f5e9a4 |
---|---|
46 > uncompressed = True | 46 > uncompressed = True |
47 > | 47 > |
48 > [hooks] | 48 > [hooks] |
49 > changegroup = sh -c "printenv.py changegroup-in-remote 0 ../dummylog" | 49 > changegroup = sh -c "printenv.py changegroup-in-remote 0 ../dummylog" |
50 > EOF | 50 > EOF |
51 $ cd .. | 51 $ cd $TESTTMP |
52 | 52 |
53 repo not found error | 53 repo not found error |
54 | 54 |
55 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local | 55 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local |
56 remote: abort: repository nonexistent not found! | 56 remote: abort: repository nonexistent not found! |
85 crosschecking files in changesets and manifests | 85 crosschecking files in changesets and manifests |
86 checking files | 86 checking files |
87 checked 3 changesets with 2 changes to 2 files | 87 checked 3 changesets with 2 changes to 2 files |
88 $ hg branches | 88 $ hg branches |
89 default 0:1160648e36ce | 89 default 0:1160648e36ce |
90 $ cd .. | 90 $ cd $TESTTMP |
91 | 91 |
92 clone bookmarks via stream | 92 clone bookmarks via stream |
93 | 93 |
94 $ hg -R local-stream book mybook | 94 $ hg -R local-stream book mybook |
95 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/local-stream stream2 | 95 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/local-stream stream2 |
101 updating to branch default | 101 updating to branch default |
102 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 102 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
103 $ cd stream2 | 103 $ cd stream2 |
104 $ hg book | 104 $ hg book |
105 mybook 0:1160648e36ce | 105 mybook 0:1160648e36ce |
106 $ cd .. | 106 $ cd $TESTTMP |
107 $ rm -rf local-stream stream2 | 107 $ rm -rf local-stream stream2 |
108 | 108 |
109 #endif | 109 #endif |
110 | 110 |
111 clone remote via pull | 111 clone remote via pull |
208 searching for changes | 208 searching for changes |
209 remote: adding changesets | 209 remote: adding changesets |
210 remote: adding manifests | 210 remote: adding manifests |
211 remote: adding file changes | 211 remote: adding file changes |
212 remote: added 1 changesets with 1 changes to 1 files | 212 remote: added 1 changesets with 1 changes to 1 files |
213 $ cd ../remote | 213 $ cd $TESTTMP/remote |
214 | 214 |
215 check remote tip | 215 check remote tip |
216 | 216 |
217 $ hg tip | 217 $ hg tip |
218 changeset: 3:a28a9d1a809c | 218 changeset: 3:a28a9d1a809c |
234 $ hg ci -A -m z z | 234 $ hg ci -A -m z z |
235 created new head | 235 created new head |
236 | 236 |
237 test pushkeys and bookmarks | 237 test pushkeys and bookmarks |
238 | 238 |
239 $ cd ../local | 239 $ cd $TESTTMP/local |
240 $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces | 240 $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces |
241 bookmarks | 241 bookmarks |
242 namespaces | 242 namespaces |
243 phases | 243 phases |
244 $ hg book foo -r 0 | 244 $ hg book foo -r 0 |
341 $ hg push ssh://user:erroneouspwd@dummy/remote | 341 $ hg push ssh://user:erroneouspwd@dummy/remote |
342 pushing to ssh://user:*@dummy/remote (glob) | 342 pushing to ssh://user:*@dummy/remote (glob) |
343 abort: password in URL not supported! | 343 abort: password in URL not supported! |
344 [255] | 344 [255] |
345 | 345 |
346 $ cd .. | 346 $ cd $TESTTMP |
347 | 347 |
348 hide outer repo | 348 hide outer repo |
349 $ hg init | 349 $ hg init |
350 | 350 |
351 Test remote paths with spaces (issue2983): | 351 Test remote paths with spaces (issue2983): |
431 remote: Permission denied | 431 remote: Permission denied |
432 remote: pushkey-abort: prepushkey.hg-ssh hook failed | 432 remote: pushkey-abort: prepushkey.hg-ssh hook failed |
433 updating 6c0482d977a3 to public failed! | 433 updating 6c0482d977a3 to public failed! |
434 [1] | 434 [1] |
435 | 435 |
436 $ cd .. | 436 $ cd $TESTTMP |
437 | 437 |
438 stderr from remote commands should be printed before stdout from local code (issue4336) | 438 stderr from remote commands should be printed before stdout from local code (issue4336) |
439 | 439 |
440 $ hg clone remote stderr-ordering | 440 $ hg clone remote stderr-ordering |
441 updating to branch default | 441 updating to branch default |
498 preparing listkeys for "phases" | 498 preparing listkeys for "phases" |
499 sending listkeys command | 499 sending listkeys command |
500 received listkey for "phases": 15 bytes | 500 received listkey for "phases": 15 bytes |
501 checking for updated bookmarks | 501 checking for updated bookmarks |
502 | 502 |
503 $ cd .. | 503 $ cd $TESTTMP |
504 | 504 |
505 $ cat dummylog | 505 $ cat dummylog |
506 Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio | 506 Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio |
507 Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio (no-msys !) | 507 Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio (no-msys !) |
508 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 508 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |