comparison tests/test-hardlinks.t @ 39707:5abc47d4ca6b

tests: quote PYTHON usage Python3 defaults to installing under "Program Files".
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 18 Sep 2018 23:47:21 -0400
parents f1186c292d03
children e0dea186ab6e
comparison
equal deleted inserted replaced
39706:030d558c6456 39707:5abc47d4ca6b
9 > print(util.nlinks(f), f) 9 > print(util.nlinks(f), f)
10 > EOF 10 > EOF
11 11
12 $ nlinksdir() 12 $ nlinksdir()
13 > { 13 > {
14 > find "$@" -type f | $PYTHON $TESTTMP/nlinks.py 14 > find "$@" -type f | "$PYTHON" $TESTTMP/nlinks.py
15 > } 15 > }
16 16
17 Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux): 17 Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux):
18 18
19 $ cat > linkcp.py <<EOF 19 $ cat > linkcp.py <<EOF
23 > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True) 23 > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True)
24 > EOF 24 > EOF
25 25
26 $ linkcp() 26 $ linkcp()
27 > { 27 > {
28 > $PYTHON $TESTTMP/linkcp.py $1 $2 28 > "$PYTHON" $TESTTMP/linkcp.py $1 $2
29 > } 29 > }
30 30
31 Prepare repo r1: 31 Prepare repo r1:
32 32
33 $ hg init r1 33 $ hg init r1