tests/run-tests.py
branchstable
changeset 1350 f541c0ba771c
parent 1348 2cb27f4b641c
child 1355 238b6ca6d2bb
equal deleted inserted replaced
1348:2cb27f4b641c 1350:f541c0ba771c
   150              " rather than capturing and diff'ing it (disables timeout)")
   150              " rather than capturing and diff'ing it (disables timeout)")
   151     parser.add_option("-f", "--first", action="store_true",
   151     parser.add_option("-f", "--first", action="store_true",
   152         help="exit on the first test failure")
   152         help="exit on the first test failure")
   153     parser.add_option("-H", "--htmlcov", action="store_true",
   153     parser.add_option("-H", "--htmlcov", action="store_true",
   154         help="create an HTML report of the coverage of the files")
   154         help="create an HTML report of the coverage of the files")
   155     parser.add_option("--inotify", action="store_true",
       
   156         help="enable inotify extension when running tests")
       
   157     parser.add_option("-i", "--interactive", action="store_true",
   155     parser.add_option("-i", "--interactive", action="store_true",
   158         help="prompt to accept changed output")
   156         help="prompt to accept changed output")
   159     parser.add_option("-j", "--jobs", type="int",
   157     parser.add_option("-j", "--jobs", type="int",
   160         help="number of jobs to run in parallel"
   158         help="number of jobs to run in parallel"
   161              " (default: $%s or %d)" % defaults['jobs'])
   159              " (default: $%s or %d)" % defaults['jobs'])
   342     hgrc.write('[defaults]\n')
   340     hgrc.write('[defaults]\n')
   343     hgrc.write('backout = -d "0 0"\n')
   341     hgrc.write('backout = -d "0 0"\n')
   344     hgrc.write('commit = -d "0 0"\n')
   342     hgrc.write('commit = -d "0 0"\n')
   345     hgrc.write('shelve = --date "0 0"\n')
   343     hgrc.write('shelve = --date "0 0"\n')
   346     hgrc.write('tag = -d "0 0"\n')
   344     hgrc.write('tag = -d "0 0"\n')
   347     if options.inotify:
       
   348         hgrc.write('[extensions]\n')
       
   349         hgrc.write('inotify=\n')
       
   350         hgrc.write('[inotify]\n')
       
   351         hgrc.write('pidfile=daemon.pids')
       
   352         hgrc.write('appendpid=True\n')
       
   353     if options.extra_config_opt:
   345     if options.extra_config_opt:
   354         for opt in options.extra_config_opt:
   346         for opt in options.extra_config_opt:
   355             section, key = opt.split('.', 1)
   347             section, key = opt.split('.', 1)
   356             assert '=' in key, ('extra config opt %s must '
   348             assert '=' in key, ('extra config opt %s must '
   357                                 'have an = for assignment' % opt)
   349                                 'have an = for assignment' % opt)