##// END OF EJS Templates
run-test: clarify the error with a bad --with-hg is passed...
marmoute -
r48383:05abe1ff default
parent child Browse files
Show More
@@ -728,7 +728,9 def parseargs(args, parser):
728 ):
728 ):
729 parser.error('--with-hg must specify an executable hg script')
729 parser.error('--with-hg must specify an executable hg script')
730 if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
730 if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
731 sys.stderr.write('warning: --with-hg should specify an hg script\n')
731 msg = 'warning: --with-hg should specify an hg script, not: %s\n'
732 msg %= _bytes2sys(os.path.basename(options.with_hg))
733 sys.stderr.write(msg)
732 sys.stderr.flush()
734 sys.stderr.flush()
733
735
734 if (options.chg or options.with_chg) and WINDOWS:
736 if (options.chg or options.with_chg) and WINDOWS:
@@ -23,7 +23,7 error paths
23 #if symlink
23 #if symlink
24 $ ln -s `which true` hg
24 $ ln -s `which true` hg
25 $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
25 $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
26 warning: --with-hg should specify an hg script
26 warning: --with-hg should specify an hg script, not: true
27 running 0 tests using 0 parallel processes
27 running 0 tests using 0 parallel processes
28
28
29 # Ran 0 tests, 0 skipped, 0 failed.
29 # Ran 0 tests, 0 skipped, 0 failed.
General Comments 0
You need to be logged in to leave comments. Login now