comparison tests/test-hgweb @ 7428:fdcde929ce4f

tests: use killdaemons in hgweb tests hgweb tests often failed on my system because the serve port wasn't free when a new hgweb was started; the killed hg wasn't completely dead yet. Now we use killdaemons which waits for the process to die.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 27 Nov 2008 00:57:30 +0100
parents 6cb522c5d56a
children 6c82beaaa11a
comparison
equal deleted inserted replaced
7427:f21e3d0e335b 7428:fdcde929ce4f
29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw' 29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
30 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork' 30 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork'
31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw' 31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
32 32
33 echo % stop and restart 33 echo % stop and restart
34 kill `cat hg.pid` 34 "$TESTDIR/killdaemons.py"
35 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log 35 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
36 cat hg.pid >> $DAEMON_PIDS 36 cat hg.pid >> $DAEMON_PIDS
37 # Test the access/error files are opened in append mode 37 # Test the access/error files are opened in append mode
38 python -c "print len(file('access.log').readlines()), 'log lines written'" 38 python -c "print len(file('access.log').readlines()), 'log lines written'"
39 39