Mercurial > hg
comparison tests/test-hook.t @ 46868:802ba3c81507
tests: stablize test-hook.t on Windows
Apparently, hooks can't run `echo` directly, even from MSYS.
Differential Revision: https://phab.mercurial-scm.org/D10300
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 03 Apr 2021 20:26:45 -0400 |
parents | d67732a4b58a |
children | 7ee07e1a25c0 |
comparison
equal
deleted
inserted
replaced
46867:915a60bf3cb6 | 46868:802ba3c81507 |
---|---|
1405 HGPLAIN setting in hooks | 1405 HGPLAIN setting in hooks |
1406 ======================== | 1406 ======================== |
1407 | 1407 |
1408 $ cat << EOF >> .hg/hgrc | 1408 $ cat << EOF >> .hg/hgrc |
1409 > [hooks] | 1409 > [hooks] |
1410 > pre-version.testing-default=echo '### default ###' plain: \${HGPLAIN:-'<unset>'} | 1410 > pre-version.testing-default=sh -c "echo '### default ###' plain: \${HGPLAIN:-'<unset>'}" |
1411 > pre-version.testing-yes=echo '### yes #######' plain: \${HGPLAIN:-'<unset>'} | 1411 > pre-version.testing-yes=sh -c "echo '### yes #######' plain: \${HGPLAIN:-'<unset>'}" |
1412 > pre-version.testing-yes:run-with-plain=yes | 1412 > pre-version.testing-yes:run-with-plain=yes |
1413 > pre-version.testing-no=echo '### no ########' plain: \${HGPLAIN:-'<unset>'} | 1413 > pre-version.testing-no=sh -c "echo '### no ########' plain: \${HGPLAIN:-'<unset>'}" |
1414 > pre-version.testing-no:run-with-plain=no | 1414 > pre-version.testing-no:run-with-plain=no |
1415 > pre-version.testing-auto=echo '### auto ######' plain: \${HGPLAIN:-'<unset>'} | 1415 > pre-version.testing-auto=sh -c "echo '### auto ######' plain: \${HGPLAIN:-'<unset>'}" |
1416 > pre-version.testing-auto:run-with-plain=auto | 1416 > pre-version.testing-auto:run-with-plain=auto |
1417 > EOF | 1417 > EOF |
1418 | 1418 |
1419 $ (unset HGPLAIN; hg version --quiet) | 1419 $ (unset HGPLAIN; hg version --quiet) |
1420 ### default ### plain: 1 | 1420 ### default ### plain: 1 |