ZTS: fix flakiness in cp_files_002_pos
commitd088fb7d24083988f38e4224a6ef9cc71c12a6a3
authorRobert Evans <evansr@google.com>
Wed, 27 Mar 2024 21:59:16 +0000 (27 17:59 -0400)
committerTony Hutter <hutter2@llnl.gov>
Mon, 29 Apr 2024 20:50:05 +0000 (29 13:50 -0700)
tree8ff96f9f2160fd80055a71bb5416fcaf1635554f
parent67995229a865642f6669dea0d4bd41d34bed2046
ZTS: fix flakiness in cp_files_002_pos

Fix RANDOM to not return zero.

Overwriting with `dd ... count=0` does not test anything.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Robert Evans <evansr@google.com>
Closes #16029
tests/zfs-tests/tests/functional/cp_files/cp_files_002_pos.ksh