# HG changeset patch # User Matt Harbison # Date 2021-04-04 00:26:45 # Node ID 802ba3c81507fcf1c470485e19278edc73f782f8 # Parent 915a60bf3cb627a59be97084c7161700d8f5b4f9 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 diff --git a/tests/test-hook.t b/tests/test-hook.t --- a/tests/test-hook.t +++ b/tests/test-hook.t @@ -1407,12 +1407,12 @@ HGPLAIN setting in hooks $ cat << EOF >> .hg/hgrc > [hooks] - > pre-version.testing-default=echo '### default ###' plain: \${HGPLAIN:-''} - > pre-version.testing-yes=echo '### yes #######' plain: \${HGPLAIN:-''} + > pre-version.testing-default=sh -c "echo '### default ###' plain: \${HGPLAIN:-''}" + > pre-version.testing-yes=sh -c "echo '### yes #######' plain: \${HGPLAIN:-''}" > pre-version.testing-yes:run-with-plain=yes - > pre-version.testing-no=echo '### no ########' plain: \${HGPLAIN:-''} + > pre-version.testing-no=sh -c "echo '### no ########' plain: \${HGPLAIN:-''}" > pre-version.testing-no:run-with-plain=no - > pre-version.testing-auto=echo '### auto ######' plain: \${HGPLAIN:-''} + > pre-version.testing-auto=sh -c "echo '### auto ######' plain: \${HGPLAIN:-''}" > pre-version.testing-auto:run-with-plain=auto > EOF