Mercurial > hg
comparison tests/test-ssh-bundle1.t @ 47588:eb611ecb435c
run-tests: rely on an actual executable in PATH instead of alias for `hg`
The alias approach is poorly inherited by other process that the test might
spawn.
To solve this we use the same approach as for `python`/`python3` we write an
executable file explicitly. Doing this fixes `which hg` invocation that now
returns the same location as `hg`.
Using chg server side has some minor effect on some stdout/stderr ordering when
using `chg` as the server too.
Differential Revision: https://phab.mercurial-scm.org/D11053
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 09 Jul 2021 22:37:24 +0200 |
parents | cc3ad5c3af3b |
children | a28a7dcb9158 |
comparison
equal
deleted
inserted
replaced
47587:be496e3489b9 | 47588:eb611ecb435c |
---|---|
302 searching for changes | 302 searching for changes |
303 remote has heads on branch 'default' that are not known locally: 6c0482d977a3 | 303 remote has heads on branch 'default' that are not known locally: 6c0482d977a3 |
304 remote: adding changesets | 304 remote: adding changesets |
305 remote: adding manifests | 305 remote: adding manifests |
306 remote: adding file changes | 306 remote: adding file changes |
307 remote: added 1 changesets with 1 changes to 1 files | 307 remote: added 1 changesets with 1 changes to 1 files (py3 !) |
308 remote: added 1 changesets with 1 changes to 1 files (no-py3 no-chg !) | |
308 remote: KABOOM | 309 remote: KABOOM |
310 remote: added 1 changesets with 1 changes to 1 files (no-py3 chg !) | |
309 $ hg -R ../remote heads | 311 $ hg -R ../remote heads |
310 changeset: 5:1383141674ec | 312 changeset: 5:1383141674ec |
311 tag: tip | 313 tag: tip |
312 parent: 3:a28a9d1a809c | 314 parent: 3:a28a9d1a809c |
313 user: test | 315 user: test |
472 pushing to ssh://user@dummy/remote | 474 pushing to ssh://user@dummy/remote |
473 searching for changes | 475 searching for changes |
474 remote: adding changesets | 476 remote: adding changesets |
475 remote: adding manifests | 477 remote: adding manifests |
476 remote: adding file changes | 478 remote: adding file changes |
477 remote: added 1 changesets with 1 changes to 1 files | 479 remote: added 1 changesets with 1 changes to 1 files (py3 !) |
480 remote: added 1 changesets with 1 changes to 1 files (no-py3 no-chg !) | |
478 remote: KABOOM | 481 remote: KABOOM |
482 remote: added 1 changesets with 1 changes to 1 files (no-py3 chg !) | |
479 local stdout | 483 local stdout |
480 | 484 |
481 debug output | 485 debug output |
482 | 486 |
483 $ hg pull --debug ssh://user@dummy/remote | 487 $ hg pull --debug ssh://user@dummy/remote |