tests: fix test-debugdynamicconfig.t on Windows

Summary:
Looks like echo prints a \r\n which messes up the output. Let's use
printf to force it to use \n

Reviewed By: xavierd

Differential Revision: D21670125

fbshipit-source-id: f991c9c9fb55720bb68a3f71e8ddd3b4f16b5375
This commit is contained in:
Durham Goode 2020-05-20 13:59:16 -07:00 committed by Facebook GitHub Bot
parent 98d428929b
commit 3c8eb75a26

View File

@ -140,11 +140,11 @@ Verify we load and verify dynamicconfigs during clone
$ export HG_TEST_DYNAMICCONFIG="$TESTTMP/test_hgrc"
$ cat > test_hgrc <<EOF
> [hooks]
> pretxnclose = echo "Hook ran!"
> pretxnclose = printf "Hook ran!\n"
> EOF
$ cat > good_hgrc <<EOF
> [hooks]
> pretxnclose = echo "Hook ran!"
> pretxnclose = printf "Hook ran!\n"
> [foo]
> bar=True
> EOF
@ -160,5 +160,5 @@ Verify we load and verify dynamicconfigs during clone
# version=4.4.2* (glob)
# Generated by `hg debugdynamicconfig` - DO NOT MODIFY
[hooks]
pretxnclose=echo "Hook ran!"
pretxnclose=printf "Hook ran!\n"