tests/run-tests.py
changeset 40529 176c26a21123
parent 40522 d6b6f1b441cf
child 40537 78e5b9d815fa
equal deleted inserted replaced
40528:86dfae98a3a2 40529:176c26a21123
   480         if not (os.path.isfile(options.with_hg) and
   480         if not (os.path.isfile(options.with_hg) and
   481                 os.access(options.with_hg, os.X_OK)):
   481                 os.access(options.with_hg, os.X_OK)):
   482             parser.error('--with-hg must specify an executable hg script')
   482             parser.error('--with-hg must specify an executable hg script')
   483         if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
   483         if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
   484             sys.stderr.write('warning: --with-hg should specify an hg script\n')
   484             sys.stderr.write('warning: --with-hg should specify an hg script\n')
       
   485             sys.stderr.flush()
   485     if options.local:
   486     if options.local:
   486         testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0])))
   487         testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0])))
   487         reporootdir = os.path.dirname(testdir)
   488         reporootdir = os.path.dirname(testdir)
   488         pathandattrs = [(b'hg', 'with_hg')]
   489         pathandattrs = [(b'hg', 'with_hg')]
   489         if options.chg:
   490         if options.chg: