tests: don't use "status" operand of dd in test-censor.t (issue6858) stable
authorAnton Shestakov <av6@dwimlabs.net>
Sun, 14 Jan 2024 16:03:08 -0300
branchstable
changeset 51315 c7edfccfc11f
parent 51313 3f87e0d305cd
child 51361 fa4c4fa232d6
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.
tests/test-censor.t
--- 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