# HG changeset patch # User Nicolas Dumazet # Date 1259628782 -32400 # Node ID b2e87fde6806bdb013e4b4c3bb0d592569532782 # Parent 2bfe1a23dafa31701ce1946ba339480d8a5b1fdd run-tests: --inotify: use inotify.appendpid to append pids to $DAEMON_PIDS Introduce a inotify.appendpid configuration possibility that appends pids to inotify.pidfile when set to True. diff -r 2bfe1a23dafa -r b2e87fde6806 hgext/inotify/server.py --- a/hgext/inotify/server.py Tue Dec 01 11:28:31 2009 +0900 +++ b/hgext/inotify/server.py Tue Dec 01 09:53:02 2009 +0900 @@ -482,5 +482,8 @@ service = service() logfile = ui.config('inotify', 'log') + + appendpid = ui.configbool('inotify', 'appendpid', False) + cmdutil.service(opts, initfn=service.init, runfn=service.run, - logfile=logfile, runargs=runargs) + logfile=logfile, runargs=runargs, appendpid=appendpid) diff -r 2bfe1a23dafa -r b2e87fde6806 tests/run-tests.py --- a/tests/run-tests.py Tue Dec 01 11:28:31 2009 +0900 +++ b/tests/run-tests.py Tue Dec 01 09:53:02 2009 +0900 @@ -476,6 +476,7 @@ hgrc.write('inotify=\n') hgrc.write('[inotify]\n') hgrc.write('pidfile=%s\n' % DAEMON_PIDS) + hgrc.write('appendpid=True\n') hgrc.close() err = os.path.join(TESTDIR, test+".err")