tests/run-tests.py
changeset 1066 bd418e7e2d29
parent 1065 c1d229864cd3
child 1068 459c0537273b
equal deleted inserted replaced
1064:a33852511558 1066:bd418e7e2d29
   207         if not os.path.basename(options.with_hg) == 'hg':
   207         if not os.path.basename(options.with_hg) == 'hg':
   208             sys.stderr.write('warning: --with-hg should specify an hg script\n')
   208             sys.stderr.write('warning: --with-hg should specify an hg script\n')
   209     if options.local:
   209     if options.local:
   210         testdir = os.path.dirname(os.path.realpath(sys.argv[0]))
   210         testdir = os.path.dirname(os.path.realpath(sys.argv[0]))
   211         hgbin = os.path.join(os.path.dirname(testdir), 'hg')
   211         hgbin = os.path.join(os.path.dirname(testdir), 'hg')
   212         if not os.access(hgbin, os.X_OK):
   212         if os.name != 'nt' and not os.access(hgbin, os.X_OK):
   213             parser.error('--local specified, but %r not found or not executable'
   213             parser.error('--local specified, but %r not found or not executable'
   214                          % hgbin)
   214                          % hgbin)
   215         options.with_hg = hgbin
   215         options.with_hg = hgbin
   216 
   216 
   217     options.anycoverage = options.cover or options.annotate or options.htmlcov
   217     options.anycoverage = options.cover or options.annotate or options.htmlcov