Show More
@@ -588,7 +588,7 b' def service(opts, parentfn=None, initfn=' | |||
|
588 | 588 | initfn() |
|
589 | 589 | |
|
590 | 590 | if opts['pid_file']: |
|
591 |
fp = open(opts['pid_file'], ' |
|
|
591 | fp = open(opts['pid_file'], 'a') | |
|
592 | 592 | fp.write(str(os.getpid()) + '\n') |
|
593 | 593 | fp.close() |
|
594 | 594 |
@@ -130,6 +130,8 b' def parseargs():' | |||
|
130 | 130 | help="use pure Python code instead of C extensions") |
|
131 | 131 | parser.add_option("-3", "--py3k-warnings", action="store_true", |
|
132 | 132 | help="enable Py3k warnings on Python 2.6+") |
|
133 | parser.add_option("--inotify", action="store_true", | |
|
134 | help="enable inotify extension when running tests") | |
|
133 | 135 | |
|
134 | 136 | for option, default in defaults.items(): |
|
135 | 137 | defaults[option] = int(os.environ.get(*default)) |
@@ -457,6 +459,11 b' def runone(options, test, skips, fails):' | |||
|
457 | 459 | hgrc.write('backout = -d "0 0"\n') |
|
458 | 460 | hgrc.write('commit = -d "0 0"\n') |
|
459 | 461 | hgrc.write('tag = -d "0 0"\n') |
|
462 | if options.inotify: | |
|
463 | hgrc.write('[extensions]\n') | |
|
464 | hgrc.write('inotify=\n') | |
|
465 | hgrc.write('[inotify]\n') | |
|
466 | hgrc.write('pidfile=%s\n' % DAEMON_PIDS) | |
|
460 | 467 | hgrc.close() |
|
461 | 468 | |
|
462 | 469 | err = os.path.join(TESTDIR, test+".err") |
General Comments 0
You need to be logged in to leave comments.
Login now