Patchwork [05,of,10] test: use `printenv.py --line` in `test-https.t`

login
register
mail settings
Submitter Boris Feld
Date Feb. 9, 2019, 10:03 p.m.
Message ID <a49388cc4f239e28d47a.1549749802@Laptop-Boris.lan>
Download mbox | patch
Permalink /patch/38604/
State Accepted
Headers show

Comments

Boris Feld - Feb. 9, 2019, 10:03 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1549671740 -3600
#      Sat Feb 09 01:22:20 2019 +0100
# Node ID a49388cc4f239e28d47a9f61992a58957e8e2bca
# Parent  558d98d70bd179e79d8e24510933425062118ace
# EXP-Topic hook.txname
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r a49388cc4f23
test: use `printenv.py --line` in `test-https.t`

This makes the output easier to update and read.

Patch

diff --git a/tests/test-https.t b/tests/test-https.t
--- a/tests/test-https.t
+++ b/tests/test-https.t
@@ -207,7 +207,7 @@  pull without cacert
   $ cd copy-pull
   $ cat >> .hg/hgrc <<EOF
   > [hooks]
-  > changegroup = sh -c "printenv.py changegroup"
+  > changegroup = sh -c "printenv.py --line changegroup"
   > EOF
   $ hg pull $DISABLECACERTS
   pulling from https://localhost:$HGPORT/
@@ -226,7 +226,14 @@  pull without cacert
   adding file changes
   added 1 changesets with 1 changes to 1 files
   new changesets 5fed3813f7f5
-  changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=https://localhost:$HGPORT/
+  changegroup hook: HG_HOOKNAME=changegroup
+  HG_HOOKTYPE=changegroup
+  HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
+  HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
+  HG_SOURCE=pull
+  HG_TXNID=TXN:$ID$
+  HG_URL=https://localhost:$HGPORT/
+  
   (run 'hg update' to get a working copy)
   $ cd ..