Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 9958:777c1df76ef4
run-tests: add --inotify option to test runner
Activate inotify extension when running tests.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Tue, 17 Nov 2009 18:50:39 +0900 |
parents | 2d0f1cde217b |
children | b37b060d84c7 |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Nov 30 19:52:03 2009 +0100 +++ b/tests/run-tests.py Tue Nov 17 18:50:39 2009 +0900 @@ -130,6 +130,8 @@ help="use pure Python code instead of C extensions") parser.add_option("-3", "--py3k-warnings", action="store_true", help="enable Py3k warnings on Python 2.6+") + parser.add_option("--inotify", action="store_true", + help="enable inotify extension when running tests") for option, default in defaults.items(): defaults[option] = int(os.environ.get(*default)) @@ -457,6 +459,11 @@ hgrc.write('backout = -d "0 0"\n') hgrc.write('commit = -d "0 0"\n') hgrc.write('tag = -d "0 0"\n') + if options.inotify: + hgrc.write('[extensions]\n') + hgrc.write('inotify=\n') + hgrc.write('[inotify]\n') + hgrc.write('pidfile=%s\n' % DAEMON_PIDS) hgrc.close() err = os.path.join(TESTDIR, test+".err")