comparison tests/run-tests.py @ 40479:176c26a21123

tests: add a critical flush() to run-tests.py to make output stable on py3 Differential Revision: https://phab.mercurial-scm.org/D5204
author Augie Fackler <augie@google.com>
date Thu, 01 Nov 2018 15:47:26 -0400
parents d6b6f1b441cf
children 78e5b9d815fa
comparison
equal deleted inserted replaced
40478:86dfae98a3a2 40479: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: