Mercurial > public > mercurial-scm > hg
comparison tests/test-diff-binary-file.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 | a36d3c8a0e41 |
children |
comparison
equal
deleted
inserted
replaced
39706:030d558c6456 | 39707:5abc47d4ca6b |
---|---|
81 $ cat > writebin.py <<EOF | 81 $ cat > writebin.py <<EOF |
82 > import sys | 82 > import sys |
83 > path = sys.argv[1] | 83 > path = sys.argv[1] |
84 > open(path, 'wb').write(b'\x00\x01\x02\x03') | 84 > open(path, 'wb').write(b'\x00\x01\x02\x03') |
85 > EOF | 85 > EOF |
86 $ $PYTHON writebin.py binfile.bin | 86 $ "$PYTHON" writebin.py binfile.bin |
87 $ hg add binfile.bin | 87 $ hg add binfile.bin |
88 $ hg ci -m 'add binfile.bin' | 88 $ hg ci -m 'add binfile.bin' |
89 | 89 |
90 $ echo >> binfile.bin | 90 $ echo >> binfile.bin |
91 $ hg ci -m 'change binfile.bin' | 91 $ hg ci -m 'change binfile.bin' |