comparison tests/test-inotify @ 9897:97eda2133a9b stable

inotify: add a inotify.pidfile configuration possibility This will mainly help us in our tests to log pids of inotify servers started implicitely, to make sure that unkilled inotify daemons do not clutter the output of unrelated tests. Also desactivate the workaround introduced in 951ec6c7d703
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Tue, 17 Nov 2009 15:36:09 +0900
parents 2c2f7593ffc4
children 8939900073a8
comparison
equal deleted inserted replaced
9896:2c2f7593ffc4 9897:97eda2133a9b
18 echo "inotify=" >> $HGRCPATH 18 echo "inotify=" >> $HGRCPATH
19 19
20 cd repo2 20 cd repo2
21 echo b >> a 21 echo b >> a
22 # check that daemon started automatically works correctly 22 # check that daemon started automatically works correctly
23 hg status 23 # and make sure that inotify.pidfile works
24 hg --config "inotify.pidfile=../hg2.pid" status
25
26 # make sure that pidfile worked. Output should be silent.
27 kill `cat ../hg2.pid`
24 28
25 cd ../repo1 29 cd ../repo1
26 echo % inserve 30 echo % inserve
27 hg inserve -d --pid-file=hg.pid 31 hg inserve -d --pid-file=hg.pid
28 cat hg.pid >> "$DAEMON_PIDS" 32 cat hg.pid >> "$DAEMON_PIDS"