Mercurial > public > mercurial-scm > hg
diff tests/test-inherit-mode.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 | c11e8894b9ca |
children | bd0874977a5e |
line wrap: on
line diff
--- a/tests/test-inherit-mode.t Tue Sep 18 22:40:03 2018 -0400 +++ b/tests/test-inherit-mode.t Tue Sep 18 23:47:21 2018 -0400 @@ -48,7 +48,7 @@ store can be written by the group, other files cannot store is setgid - $ $PYTHON ../printmodes.py . + $ "$PYTHON" ../printmodes.py . 00700 ./.hg/ 00600 ./.hg/00changelog.i 00600 ./.hg/requires @@ -64,7 +64,7 @@ (in particular, store/**, dirstate, branch cache file, undo files) new directories are setgid - $ $PYTHON ../printmodes.py . + $ "$PYTHON" ../printmodes.py . 00700 ./.hg/ 00600 ./.hg/00changelog.i 00770 ./.hg/cache/ @@ -109,7 +109,7 @@ before push group can write everything - $ $PYTHON ../printmodes.py ../push + $ "$PYTHON" ../printmodes.py ../push 00770 ../push/.hg/ 00660 ../push/.hg/00changelog.i 00660 ../push/.hg/requires @@ -121,7 +121,7 @@ after push group can still write everything - $ $PYTHON ../printmodes.py ../push + $ "$PYTHON" ../printmodes.py ../push 00770 ../push/.hg/ 00660 ../push/.hg/00changelog.i 00770 ../push/.hg/cache/ @@ -163,8 +163,8 @@ $ mkdir dir $ touch dir/file $ hg ci -qAm 'add dir/file' - $ storemode=`$PYTHON ../mode.py .hg/store` - $ dirmode=`$PYTHON ../mode.py .hg/store/data/dir` + $ storemode=`"$PYTHON" ../mode.py .hg/store` + $ dirmode=`"$PYTHON" ../mode.py .hg/store/data/dir` $ if [ "$storemode" != "$dirmode" ]; then > echo "$storemode != $dirmode" > fi