Mercurial > hg-stable
changeset 4291:35b2e02367a5
test-ssh: use printenv.py
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 26 Mar 2007 23:50:04 -0300 |
parents | 347766c2ff86 |
children | b90e323a4781 |
files | tests/test-ssh tests/test-ssh.out |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-ssh Mon Mar 26 23:50:03 2007 -0300 +++ b/tests/test-ssh Mon Mar 26 23:50:04 2007 -0300 @@ -1,5 +1,7 @@ #!/bin/sh +cp "$TESTDIR"/printenv.py . + # This test tries to exercise the ssh functionality with a dummy script cat <<'EOF' > dummyssh @@ -33,7 +35,7 @@ echo '[server]' > .hg/hgrc echo 'uncompressed = True' >> .hg/hgrc echo '[hooks]' >> .hg/hgrc -echo 'changegroup = echo changegroup in remote: u=$HG_URL >> ../dummylog' >> .hg/hgrc +echo 'changegroup = python ../printenv.py changegroup-in-remote 0 ../dummylog' >> .hg/hgrc cd .. @@ -55,7 +57,7 @@ hg verify echo '[hooks]' >> .hg/hgrc -echo 'changegroup = echo changegroup in local: u=$HG_URL >> ../dummylog' >> .hg/hgrc +echo 'changegroup = python ../printenv.py changegroup-in-local 0 ../dummylog' >> .hg/hgrc echo "# empty default pull" hg paths
--- a/tests/test-ssh.out Mon Mar 26 23:50:03 2007 -0300 +++ b/tests/test-ssh.out Mon Mar 26 23:50:04 2007 -0300 @@ -85,6 +85,6 @@ Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: Got arguments 1:user@dummy 2:hg -R local serve --stdio 3: 4: 5: Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: -changegroup in remote: u=remote:ssh:127.0.0.1 +changegroup-in-remote hook: HG_NODE=572896fe480d7581849806ee402175c49cb20037 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: -changegroup in remote: u=remote:ssh:127.0.0.1 +changegroup-in-remote hook: HG_NODE=ac7448082955a0b2ff5cb4512c1e061c779bbc79 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1