Mercurial > hg
diff tests/test-update-atomic.t @ 46226:0826d684a1b5
test: replace a many occurence of `python` with `$PYTHON`
Otherwise this can use the wrong python version, or worse, not find any python
at all.
Differential Revision: https://phab.mercurial-scm.org/D9730
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 12 Jan 2021 22:43:55 +0100 |
parents | 1bc345d488fd |
children | 1d075b857c90 |
line wrap: on
line diff
--- a/tests/test-update-atomic.t Tue Jan 12 17:32:08 2021 -0800 +++ b/tests/test-update-atomic.t Tue Jan 12 22:43:55 2021 +0100 @@ -54,7 +54,7 @@ $ hg update -r 1 --config extensions.showwrites=.hg/showwrites.py 2>&1 | grep "a1'.*wb" ('vfs open', ('a1', 'wb'), [('atomictemp', False), ('backgroundclose', True)]) - $ python $TESTTMP/show_mode.py * + $ $PYTHON $TESTTMP/show_mode.py * a1:0644 a2:0755 b1:0644 @@ -76,7 +76,7 @@ $ hg update -r 1 6 files updated, 0 files merged, 1 files removed, 0 files unresolved - $ python $TESTTMP/show_mode.py * + $ $PYTHON $TESTTMP/show_mode.py * a1:0644 a2:0755 b1:0644 @@ -88,7 +88,7 @@ $ chmod a-w ro - $ python $TESTTMP/show_mode.py ro + $ $PYTHON $TESTTMP/show_mode.py ro ro:0444 Now the file is present, try to update and check the permissions of the file @@ -96,7 +96,7 @@ $ hg up -r 2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ python $TESTTMP/show_mode.py ro + $ $PYTHON $TESTTMP/show_mode.py ro ro:0644 # The file which was read-only is now writable in the default behavior @@ -121,7 +121,7 @@ C ro Check the file permission after update - $ python $TESTTMP/show_mode.py * + $ $PYTHON $TESTTMP/show_mode.py * a1:0644 a2:0755 b1:0644 @@ -133,7 +133,7 @@ $ chmod a-w ro - $ python $TESTTMP/show_mode.py ro + $ $PYTHON $TESTTMP/show_mode.py ro ro:0444 Now the file is present, try to update and check the permissions of the file @@ -141,7 +141,7 @@ $ hg update -r 2 --traceback 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ python $TESTTMP/show_mode.py ro + $ $PYTHON $TESTTMP/show_mode.py ro ro:0644 # The behavior is the same as without atomic update