comparison tests/test-convert-p4 @ 9043:438f0b1d4684

tests: remove more instances of export FOO=bar bashism
author Brodie Rao <me+hg@dackz.net>
date Sun, 05 Jul 2009 18:52:55 -0400
parents 5b7da468531b
children d4d4da54ab05
comparison
equal deleted inserted replaced
9025:42956a93db3a 9043:438f0b1d4684
4 4
5 echo "[extensions]" >> $HGRCPATH 5 echo "[extensions]" >> $HGRCPATH
6 echo "convert = " >> $HGRCPATH 6 echo "convert = " >> $HGRCPATH
7 7
8 echo % create p4 depot 8 echo % create p4 depot
9 export P4ROOT=$PWD/depot 9 P4ROOT=$PWD/depot; export P4ROOT
10 export P4AUDIT=$P4ROOT/audit 10 P4AUDIT=$P4ROOT/audit; export P4AUDIT
11 export P4JOURNAL=$P4ROOT/journal 11 P4JOURNAL=$P4ROOT/journal; export P4JOURNAL
12 export P4LOG=$P4ROOT/log 12 P4LOG=$P4ROOT/log; export P4LOG
13 export P4PORT=localhost:16661 13 P4PORT=localhost:16661; export P4PORT
14 export P4DEBUG=1 14 P4DEBUG=1; export P4DEBUG
15 15
16 echo % start the p4 server 16 echo % start the p4 server
17 [ ! -d $P4ROOT ] && mkdir $P4ROOT 17 [ ! -d $P4ROOT ] && mkdir $P4ROOT
18 p4d -f -J off >$P4ROOT/stdout 2>$P4ROOT/stderr & 18 p4d -f -J off >$P4ROOT/stdout 2>$P4ROOT/stderr &
19 trap "echo % stop the p4 server ; p4 admin stop" EXIT 19 trap "echo % stop the p4 server ; p4 admin stop" EXIT
22 while ! p4 ; do 22 while ! p4 ; do
23 sleep 1 23 sleep 1
24 done >/dev/null 2>/dev/null 24 done >/dev/null 2>/dev/null
25 25
26 echo % create a client spec 26 echo % create a client spec
27 export P4CLIENT=hg-p4-import 27 P4CLIENT=hg-p4-import; export P4CLIENT
28 DEPOTPATH=//depot/test-mercurial-import/... 28 DEPOTPATH=//depot/test-mercurial-import/...
29 p4 client -o | sed '/^View:/,$ d' >p4client 29 p4 client -o | sed '/^View:/,$ d' >p4client
30 echo View: >>p4client 30 echo View: >>p4client
31 echo " $DEPOTPATH //$P4CLIENT/..." >>p4client 31 echo " $DEPOTPATH //$P4CLIENT/..." >>p4client
32 p4 client -i <p4client 32 p4 client -i <p4client