comparison tests/test-lfs-test-server.t @ 37846:89793289c891

tests: remove pid file by default Previously, killdaemons.py would kill PIDs listed in a file then leave the file lingering around. If the PIDs are killed, then there's no point leaving the PID file around. In the worst case, a later invocation of killdaemons.py (run-tests.py invokes killdaemons.py after running a test) could kill a separate process whose PID conflicted with a previously-killed process. By removing the PID file, we eliminate this possibility. Some tests were manually removing the PID file after calling killdaemons.py. So we update these tests to not do this. Differential Revision: https://phab.mercurial-scm.org/D3443
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 05 May 2018 19:00:03 -0700
parents ab04972a33ef
children 538e850ae737
comparison
equal deleted inserted replaced
37845:b4b7427b5786 37846:89793289c891
878 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob) 878 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob)
879 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob) 879 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob)
880 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) 880 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
881 #endif 881 #endif
882 882
883 $ rm $DAEMON_PIDS
884 $ mkdir $TESTTMP/lfs-server2 883 $ mkdir $TESTTMP/lfs-server2
885 $ cd $TESTTMP/lfs-server2 884 $ cd $TESTTMP/lfs-server2
886 #if no-windows git-server 885 #if no-windows git-server
887 $ lfs-test-server &> lfs-server.log & 886 $ lfs-test-server &> lfs-server.log &
888 $ echo $! >> $DAEMON_PIDS 887 $ echo $! >> $DAEMON_PIDS