Mercurial > hg
comparison tests/test-check-py3-commands.t @ 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 | 8a17c541177f |
children | 52ee1b5ac277 |
comparison
equal
deleted
inserted
replaced
31375:d57aa655ce97 | 31376:3690c75f4d1e |
---|---|
1 #require py3exe | 1 #require py3exe |
2 | 2 |
3 This test helps in keeping a track on which commands we can run on | 3 This test helps in keeping a track on which commands we can run on |
4 Python 3 and see what kind of errors are coming up. | 4 Python 3 and see what kind of errors are coming up. |
5 The full traceback is hidden to have a stable output. | 5 The full traceback is hidden to have a stable output. |
6 $ HGBIN=`which hg` | |
6 | 7 |
7 $ for cmd in version debuginstall ; do | 8 $ for cmd in version debuginstall ; do |
8 > echo $cmd | 9 > echo $cmd |
9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1 | 10 > $PYTHON3 $HGBIN $cmd 2>&1 2>&1 | tail -1 |
10 > done | 11 > done |
11 version | 12 version |
12 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 13 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
13 debuginstall | 14 debuginstall |
14 no problems detected | 15 no problems detected |
18 > babar = imaginary_elephant | 19 > babar = imaginary_elephant |
19 > EOF | 20 > EOF |
20 $ cat >> $HGRCPATH <<EOF | 21 $ cat >> $HGRCPATH <<EOF |
21 > %include $TESTTMP/included-hgrc | 22 > %include $TESTTMP/included-hgrc |
22 > EOF | 23 > EOF |
23 $ $PYTHON3 `which hg` version | tail -1 | 24 $ $PYTHON3 $HGBIN version | tail -1 |
24 *** failed to import extension babar from imaginary_elephant: *: 'imaginary_elephant' (glob) | 25 *** failed to import extension babar from imaginary_elephant: *: 'imaginary_elephant' (glob) |
25 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 26 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
26 | 27 |
27 Test bytes-ness of policy.policy with HGMODULEPOLICY | 28 Test bytes-ness of policy.policy with HGMODULEPOLICY |
28 | 29 |