run-tests: --inotify: use inotify.appendpid to append pids to $DAEMON_PIDS
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Tue, 01 Dec 2009 09:53:02 +0900
changeset 10013 b2e87fde6806
parent 10012 2bfe1a23dafa
child 10014 54cd28258ea7
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.
hgext/inotify/server.py
tests/run-tests.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)
--- 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")