##// END OF EJS Templates
Don't use mktemp in tests, we're already in a secure temp dir.
Thomas Arendsen Hein -
r1786:ffb584a1 default
parent child Browse files
Show More
@@ -18,8 +18,7 b' echo "name = test-archive" >> .hg/hgrc'
18 18 echo "allowzip = true" >> .hg/hgrc
19 19 echo "allowgz = true" >> .hg/hgrc
20 20 echo "allowbz2 = true" >> .hg/hgrc
21 serverpid=`mktemp`
22 hg serve -p 20059 -d --pid-file=$serverpid
21 hg serve -p 20059 -d --pid-file=hg.pid
23 22
24 23 TIP=`hg id -v | cut -f1 -d' '`
25 24 QTIP=`hg id -q`
@@ -35,5 +34,4 b' http_proxy= python getarchive.py "$TIP" '
35 34 http_proxy= python getarchive.py "$TIP" zip > archive.zip
36 35 unzip -t archive.zip | sed "s/$QTIP/TIP/"
37 36
38 kill `cat $serverpid`
39 rm $serverpid
37 kill `cat hg.pid`
@@ -7,8 +7,7 b' hg init'
7 7 hg addremove
8 8 hg commit -m 1
9 9 hg verify
10 serverpid=`mktemp`
11 hg serve -p 20059 -d --pid-file=$serverpid
10 hg serve -p 20059 -d --pid-file=hg.pid
12 11 cd ..
13 12
14 13 hg clone http://localhost:20059/ copy
@@ -19,5 +18,4 b' cat foo'
19 18 hg manifest
20 19 hg pull
21 20
22 kill `cat $serverpid`
23 rm $serverpid
21 kill `cat ../test/hg.pid`
General Comments 0
You need to be logged in to leave comments. Login now