comparison tests/test-keyword.t @ 16350:4f795f5fbb0b stable

tests: make tests work if directory contains special characters With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 03 Apr 2012 19:06:35 +0200
parents 20ad8f0512a2
children d6a4cfefafb3
comparison
equal deleted inserted replaced
16349:425f1fbcfb94 16350:4f795f5fbb0b
905 - no expansion with hgweb annotate/changeset/filediff 905 - no expansion with hgweb annotate/changeset/filediff
906 - check errors 906 - check errors
907 907
908 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log 908 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
909 $ cat hg.pid >> $DAEMON_PIDS 909 $ cat hg.pid >> $DAEMON_PIDS
910 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/file/tip/a/?style=raw' 910 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/a/?style=raw'
911 200 Script output follows 911 200 Script output follows
912 912
913 expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ 913 expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
914 do not process $Id: 914 do not process $Id:
915 xxx $ 915 xxx $
916 $Xinfo: User Name <user@example.com>: firstline $ 916 $Xinfo: User Name <user@example.com>: firstline $
917 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/annotate/tip/a/?style=raw' 917 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/a/?style=raw'
918 200 Script output follows 918 200 Script output follows
919 919
920 920
921 user@1: expand $Id$ 921 user@1: expand $Id$
922 user@1: do not process $Id: 922 user@1: do not process $Id:
924 user@2: $Xinfo$ 924 user@2: $Xinfo$
925 925
926 926
927 927
928 928
929 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/rev/tip/?style=raw' 929 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw'
930 200 Script output follows 930 200 Script output follows
931 931
932 932
933 # HG changeset patch 933 # HG changeset patch
934 # User User Name <user@example.com> 934 # User User Name <user@example.com>
944 +expand $Id$ 944 +expand $Id$
945 +do not process $Id: 945 +do not process $Id:
946 +xxx $ 946 +xxx $
947 +$Xinfo$ 947 +$Xinfo$
948 948
949 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/diff/bb948857c743/a?style=raw' 949 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw'
950 200 Script output follows 950 200 Script output follows
951 951
952 952
953 diff -r ef63ca68695b -r bb948857c743 a 953 diff -r ef63ca68695b -r bb948857c743 a
954 --- a/a Thu Jan 01 00:00:00 1970 +0000 954 --- a/a Thu Jan 01 00:00:00 1970 +0000