comparison tests/test-purge.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 8e6f4939a69a
children ef6cab7930b3
comparison
equal deleted inserted replaced
39706:030d558c6456 39707:5abc47d4ca6b
47 47
48 delete an untracked file 48 delete an untracked file
49 49
50 $ touch untracked_file 50 $ touch untracked_file
51 $ touch untracked_file_readonly 51 $ touch untracked_file_readonly
52 $ $PYTHON <<EOF 52 $ "$PYTHON" <<EOF
53 > import os, stat 53 > import os, stat
54 > f= 'untracked_file_readonly' 54 > f= 'untracked_file_readonly'
55 > os.chmod(f, stat.S_IMODE(os.stat(f).st_mode) & ~stat.S_IWRITE) 55 > os.chmod(f, stat.S_IMODE(os.stat(f).st_mode) & ~stat.S_IWRITE)
56 > EOF 56 > EOF
57 $ hg purge -p 57 $ hg purge -p