mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
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:
parent
98d428929b
commit
3c8eb75a26
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user