Mercurial > hg
changeset 31376:3690c75f4d1e
tests: make a variable for hg binary location in test-check-py3-commands
The number of which calls in here is starting to get silly.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 03:37:45 -0400 |
parents | d57aa655ce97 |
children | 52ee1b5ac277 |
files | tests/test-check-py3-commands.t |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-py3-commands.t Sun Mar 12 03:28:50 2017 -0400 +++ b/tests/test-check-py3-commands.t Sun Mar 12 03:37:45 2017 -0400 @@ -3,10 +3,11 @@ This test helps in keeping a track on which commands we can run on Python 3 and see what kind of errors are coming up. The full traceback is hidden to have a stable output. + $ HGBIN=`which hg` $ for cmd in version debuginstall ; do > echo $cmd - > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1 + > $PYTHON3 $HGBIN $cmd 2>&1 2>&1 | tail -1 > done version warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @@ -20,7 +21,7 @@ $ cat >> $HGRCPATH <<EOF > %include $TESTTMP/included-hgrc > EOF - $ $PYTHON3 `which hg` version | tail -1 + $ $PYTHON3 $HGBIN version | tail -1 *** failed to import extension babar from imaginary_elephant: *: 'imaginary_elephant' (glob) warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.