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.
--- 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)
--- 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")