##// END OF EJS Templates
run-tests: add --inotify option to test runner...
Nicolas Dumazet -
r9958:777c1df7 default
parent child Browse files
Show More
@@ -588,7 +588,7 b' def service(opts, parentfn=None, initfn='
588 initfn()
588 initfn()
589
589
590 if opts['pid_file']:
590 if opts['pid_file']:
591 fp = open(opts['pid_file'], 'w')
591 fp = open(opts['pid_file'], 'a')
592 fp.write(str(os.getpid()) + '\n')
592 fp.write(str(os.getpid()) + '\n')
593 fp.close()
593 fp.close()
594
594
@@ -130,6 +130,8 b' def parseargs():'
130 help="use pure Python code instead of C extensions")
130 help="use pure Python code instead of C extensions")
131 parser.add_option("-3", "--py3k-warnings", action="store_true",
131 parser.add_option("-3", "--py3k-warnings", action="store_true",
132 help="enable Py3k warnings on Python 2.6+")
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 for option, default in defaults.items():
136 for option, default in defaults.items():
135 defaults[option] = int(os.environ.get(*default))
137 defaults[option] = int(os.environ.get(*default))
@@ -457,6 +459,11 b' def runone(options, test, skips, fails):'
457 hgrc.write('backout = -d "0 0"\n')
459 hgrc.write('backout = -d "0 0"\n')
458 hgrc.write('commit = -d "0 0"\n')
460 hgrc.write('commit = -d "0 0"\n')
459 hgrc.write('tag = -d "0 0"\n')
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 hgrc.close()
467 hgrc.close()
461
468
462 err = os.path.join(TESTDIR, test+".err")
469 err = os.path.join(TESTDIR, test+".err")
General Comments 0
You need to be logged in to leave comments. Login now