##// END OF EJS Templates
run-tests: warn about symlinks to non hg scripts...
timeless -
r28037:54c896f8 default
parent child Browse files
Show More
@@ -285,7 +285,7 b' def parseargs(args, parser):'
285 options.pure = True
285 options.pure = True
286
286
287 if options.with_hg:
287 if options.with_hg:
288 options.with_hg = os.path.expanduser(options.with_hg)
288 options.with_hg = os.path.realpath(os.path.expanduser(options.with_hg))
289 if not (os.path.isfile(options.with_hg) and
289 if not (os.path.isfile(options.with_hg) and
290 os.access(options.with_hg, os.X_OK)):
290 os.access(options.with_hg, os.X_OK)):
291 parser.error('--with-hg must specify an executable hg script')
291 parser.error('--with-hg must specify an executable hg script')
@@ -21,6 +21,27 b' Define a helper to avoid the install ste'
21 > run-tests.py --with-hg=`which hg` "$@"
21 > run-tests.py --with-hg=`which hg` "$@"
22 > }
22 > }
23
23
24 error paths
25
26 #if symlink
27 $ ln -s `which true` hg
28 $ run-tests.py --with-hg=./hg
29 warning: --with-hg should specify an hg script
30
31 # Ran 0 tests, 0 skipped, 0 warned, 0 failed.
32 $ rm hg
33 #endif
34
35 #if execbit
36 $ touch hg
37 $ run-tests.py --with-hg=./hg
38 Usage: run-tests.py [options] [tests]
39
40 run-tests.py: error: --with-hg must specify an executable hg script
41 [2]
42 $ rm hg
43 #endif
44
24 a succesful test
45 a succesful test
25 =======================
46 =======================
26
47
General Comments 0
You need to be logged in to leave comments. Login now