Mercurial > public > mercurial-scm > hg
diff tests/test-archive @ 1786:ffb584a182d1
Don't use mktemp in tests, we're already in a secure temp dir.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 22 Feb 2006 07:51:32 +0100 |
parents | 385b06493465 |
children | 85daa4e03b4c |
line wrap: on
line diff
--- 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`