Show More
@@ -214,7 +214,8 b' def getparser():' | |||||
214 | parser.add_option("-k", "--keywords", |
|
214 | parser.add_option("-k", "--keywords", | |
215 | help="run tests matching keywords") |
|
215 | help="run tests matching keywords") | |
216 | parser.add_option("-l", "--local", action="store_true", |
|
216 | parser.add_option("-l", "--local", action="store_true", | |
217 |
help="shortcut for --with-hg=<testdir>/../hg" |
|
217 | help="shortcut for --with-hg=<testdir>/../hg, " | |
|
218 | "and --with-chg=<testdir>/../contrib/chg/chg if --chg is set") | |||
218 | parser.add_option("--loop", action="store_true", |
|
219 | parser.add_option("--loop", action="store_true", | |
219 | help="loop tests repeatedly") |
|
220 | help="loop tests repeatedly") | |
220 | parser.add_option("--runs-per-test", type="int", dest="runs_per_test", |
|
221 | parser.add_option("--runs-per-test", type="int", dest="runs_per_test", | |
@@ -310,6 +311,8 b' def parseargs(args, parser):' | |||||
310 | testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0]))) |
|
311 | testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0]))) | |
311 | reporootdir = os.path.dirname(testdir) |
|
312 | reporootdir = os.path.dirname(testdir) | |
312 | pathandattrs = [(b'hg', 'with_hg')] |
|
313 | pathandattrs = [(b'hg', 'with_hg')] | |
|
314 | if options.chg: | |||
|
315 | pathandattrs.append((b'contrib/chg/chg', 'with_chg')) | |||
313 | for relpath, attr in pathandattrs: |
|
316 | for relpath, attr in pathandattrs: | |
314 | binpath = os.path.join(reporootdir, relpath) |
|
317 | binpath = os.path.join(reporootdir, relpath) | |
315 | if os.name != 'nt' and not os.access(binpath, os.X_OK): |
|
318 | if os.name != 'nt' and not os.access(binpath, os.X_OK): |
General Comments 0
You need to be logged in to leave comments.
Login now