Mercurial > hg
changeset 51315:c7edfccfc11f stable
tests: don't use "status" operand of dd in test-censor.t (issue6858)
Some implementations don't have this operand, let's just direct stderr into
/dev/null, that's pretty cross-platform.
Also specify bs=512 (the default for me), because the default might be
different on different systems. Other uses of dd in the tests do specify it, so
this is more consistent.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 14 Jan 2024 16:03:08 -0300 |
parents | 3f87e0d305cd |
children | fa4c4fa232d6 |
files | tests/test-censor.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-censor.t Thu Jan 11 17:49:51 2024 +0100 +++ b/tests/test-censor.t Sun Jan 14 16:03:08 2024 -0300 @@ -300,7 +300,7 @@ rev-count data-size inl type target 8 ??? no file target (glob) (revlogv2 !) 8 ??? yes file target (glob) (revlogv1 !) - $ cat /dev/rand?m | dd status=none count=200 | f --hexdump > target + $ cat /dev/rand?m | dd bs=512 count=200 2> /dev/null | f --hexdump > target $ hg ci -m 'add 100k passwords' $ H2=`hg id --debug -i` $ C5=$H2