Mercurial > hg
diff tests/test-relink.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 | cbc4425e81b5 |
children | 43f0a37bd9ed |
line wrap: on
line diff
--- a/tests/test-relink.t Tue Sep 18 22:40:03 2018 -0400 +++ b/tests/test-relink.t Tue Sep 18 23:47:21 2018 -0400 @@ -49,7 +49,7 @@ Test files are read in binary mode - $ $PYTHON -c "open('.hg/store/data/dummy.i', 'wb').write(b'a\r\nb\n')" + $ "$PYTHON" -c "open('.hg/store/data/dummy.i', 'wb').write(b'a\r\nb\n')" $ cd .. @@ -68,7 +68,7 @@ $ echo b >> b $ hg ci -m changeb created new head - $ $PYTHON -c "open('.hg/store/data/dummy.i', 'wb').write(b'a\nb\r\n')" + $ "$PYTHON" -c "open('.hg/store/data/dummy.i', 'wb').write(b'a\nb\r\n')" relink @@ -98,9 +98,9 @@ check hardlinks - $ $PYTHON arelinked.py repo/.hg/store/data/a.i clone/.hg/store/data/a.i + $ "$PYTHON" arelinked.py repo/.hg/store/data/a.i clone/.hg/store/data/a.i repo/.hg/store/data/a.i == clone/.hg/store/data/a.i - $ $PYTHON arelinked.py repo/.hg/store/data/b.i clone/.hg/store/data/b.i + $ "$PYTHON" arelinked.py repo/.hg/store/data/b.i clone/.hg/store/data/b.i repo/.hg/store/data/b.i != clone/.hg/store/data/b.i #endif