changeset 10013:b2e87fde6806

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.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Tue, 01 Dec 2009 09:53:02 +0900
parents 2bfe1a23dafa
children 54cd28258ea7
files hgext/inotify/server.py tests/run-tests.py
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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")