comparison tests/test-lfs-test-server.t @ 39707:5abc47d4ca6b

tests: quote PYTHON usage Python3 defaults to installing under "Program Files".
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 18 Sep 2018 23:47:21 -0400
parents cb70501d8b71
children d7304434390f
comparison
equal deleted inserted replaced
39706:030d558c6456 39707:5abc47d4ca6b
34 > p = subprocess.Popen(exe, stdout=out, stderr=out) 34 > p = subprocess.Popen(exe, stdout=out, stderr=out)
35 > sys.stdout.write('%s\n' % p.pid) 35 > sys.stdout.write('%s\n' % p.pid)
36 > sys.exit(0) 36 > sys.exit(0)
37 > sys.exit(1) 37 > sys.exit(1)
38 > EOF 38 > EOF
39 $ $PYTHON $TESTTMP/spawn.py >> $DAEMON_PIDS 39 $ "$PYTHON" $TESTTMP/spawn.py >> $DAEMON_PIDS
40 #endif 40 #endif
41 41
42 $ cat >> $HGRCPATH <<EOF 42 $ cat >> $HGRCPATH <<EOF
43 > [extensions] 43 > [extensions]
44 > lfs= 44 > lfs=
848 $ cd .. 848 $ cd ..
849 $ rm -rf `hg config lfs.usercache` 849 $ rm -rf `hg config lfs.usercache`
850 850
851 (Restart the server in a different location so it no longer has the content) 851 (Restart the server in a different location so it no longer has the content)
852 852
853 $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS 853 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
854 854
855 #if hg-server 855 #if hg-server
856 $ cat $TESTTMP/access.log $TESTTMP/errors.log 856 $ cat $TESTTMP/access.log $TESTTMP/errors.log
857 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) 857 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
858 $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 201 - (glob) 858 $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 201 - (glob)
886 $ lfs-test-server &> lfs-server.log & 886 $ lfs-test-server &> lfs-server.log &
887 $ echo $! >> $DAEMON_PIDS 887 $ echo $! >> $DAEMON_PIDS
888 #endif 888 #endif
889 889
890 #if windows git-server 890 #if windows git-server
891 $ $PYTHON $TESTTMP/spawn.py >> $DAEMON_PIDS 891 $ "$PYTHON" $TESTTMP/spawn.py >> $DAEMON_PIDS
892 #endif 892 #endif
893 893
894 #if hg-server 894 #if hg-server
895 $ hg init server2 895 $ hg init server2
896 $ hg --config "lfs.usercache=$TESTTMP/servercache2" -R server2 serve -d \ 896 $ hg --config "lfs.usercache=$TESTTMP/servercache2" -R server2 serve -d \
936 "transfer": "basic" (hg-server !) 936 "transfer": "basic" (hg-server !)
937 } 937 }
938 abort: LFS server error for "a": The object does not exist! 938 abort: LFS server error for "a": The object does not exist!
939 [255] 939 [255]
940 940
941 $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS 941 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS