##// END OF EJS Templates
test-ssh: verify that stderr from remote is printed (issue4336)...
Gregory Szorc -
r22247:8341c677 default
parent child Browse files
Show More
@@ -360,6 +360,47 b' Test hg-ssh in read-only mode:'
360
360
361 $ cd ..
361 $ cd ..
362
362
363 stderr from remote commands should be printed before stdout from local code (issue4336)
364
365 $ hg clone remote stderr-ordering
366 updating to branch default
367 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
368 $ cd stderr-ordering
369 $ cat >> localwrite.py << EOF
370 > from mercurial import exchange, extensions
371 >
372 > def wrappedpush(orig, repo, *args, **kwargs):
373 > res = orig(repo, *args, **kwargs)
374 > repo.ui.write('local stdout\n')
375 > return res
376 >
377 > def extsetup(ui):
378 > extensions.wrapfunction(exchange, 'push', wrappedpush)
379 > EOF
380
381 $ cat >> .hg/hgrc << EOF
382 > [paths]
383 > default-push = ssh://user@dummy/remote
384 > [ui]
385 > ssh = python "$TESTDIR/dummyssh"
386 > [extensions]
387 > localwrite = localwrite.py
388 > EOF
389
390 $ echo localwrite > foo
391 $ hg commit -m 'testing localwrite'
392 $ hg push
393 pushing to ssh://user@dummy/remote
394 searching for changes
395 remote: adding changesets
396 remote: adding manifests
397 remote: adding file changes
398 remote: added 1 changesets with 1 changes to 1 files
399 remote: KABOOM
400 local stdout
401
402 $ cd ..
403
363 $ cat dummylog
404 $ cat dummylog
364 Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
405 Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
365 Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio
406 Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio
@@ -387,3 +428,5 b' Test hg-ssh in read-only mode:'
387 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
428 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
388 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
429 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
389 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
430 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
431 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
432 changegroup-in-remote hook: HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
General Comments 0
You need to be logged in to leave comments. Login now