##// END OF EJS Templates
run-tests: make --local set --with-chg if --chg is used...
Jun Wu -
r29583:6ce870db default
parent child Browse files
Show More
@@ -214,7 +214,8 b' def getparser():'
214 214 parser.add_option("-k", "--keywords",
215 215 help="run tests matching keywords")
216 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 219 parser.add_option("--loop", action="store_true",
219 220 help="loop tests repeatedly")
220 221 parser.add_option("--runs-per-test", type="int", dest="runs_per_test",
@@ -310,6 +311,8 b' def parseargs(args, parser):'
310 311 testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0])))
311 312 reporootdir = os.path.dirname(testdir)
312 313 pathandattrs = [(b'hg', 'with_hg')]
314 if options.chg:
315 pathandattrs.append((b'contrib/chg/chg', 'with_chg'))
313 316 for relpath, attr in pathandattrs:
314 317 binpath = os.path.join(reporootdir, relpath)
315 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