# HG changeset patch # User Thomas Arendsen Hein # Date 1140591092 -3600 # Node ID ffb584a182d1a60c53509f2494a31d3ef7e01b94 # Parent 81ca1a9bd061463dec55f1745d4a6ead583a962d Don't use mktemp in tests, we're already in a secure temp dir. diff -r 81ca1a9bd061 -r ffb584a182d1 tests/test-archive --- a/tests/test-archive Wed Feb 22 07:45:14 2006 +0100 +++ b/tests/test-archive Wed Feb 22 07:51:32 2006 +0100 @@ -18,8 +18,7 @@ echo "allowzip = true" >> .hg/hgrc echo "allowgz = true" >> .hg/hgrc echo "allowbz2 = true" >> .hg/hgrc -serverpid=`mktemp` -hg serve -p 20059 -d --pid-file=$serverpid +hg serve -p 20059 -d --pid-file=hg.pid TIP=`hg id -v | cut -f1 -d' '` QTIP=`hg id -q` @@ -35,5 +34,4 @@ http_proxy= python getarchive.py "$TIP" zip > archive.zip unzip -t archive.zip | sed "s/$QTIP/TIP/" -kill `cat $serverpid` -rm $serverpid +kill `cat hg.pid` diff -r 81ca1a9bd061 -r ffb584a182d1 tests/test-pull --- a/tests/test-pull Wed Feb 22 07:45:14 2006 +0100 +++ b/tests/test-pull Wed Feb 22 07:51:32 2006 +0100 @@ -7,8 +7,7 @@ hg addremove hg commit -m 1 hg verify -serverpid=`mktemp` -hg serve -p 20059 -d --pid-file=$serverpid +hg serve -p 20059 -d --pid-file=hg.pid cd .. hg clone http://localhost:20059/ copy @@ -19,5 +18,4 @@ hg manifest hg pull -kill `cat $serverpid` -rm $serverpid +kill `cat ../test/hg.pid`