ZTS: Change cp_stress to fit timings (#16369)

cp_stress is getting killed on the new QEMU-based github runners
we're developing. The problem is that the Linux based runners
should do 10 RUNS, where the FreeBSD based runners only have 3
RUNS to succeed.

This patch removes this different handling of Linux and FreeBSD.
The cp_stress test is running fine in around 2 minutes now.

Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
This commit is contained in:
Tino Reichardt 2024-07-22 23:03:22 +02:00 committed by GitHub
parent aea42e1379
commit 37275fd109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,13 +57,8 @@ MYPWD="$PWD"
cd /$TESTPOOL/cp_stress
CPUS=$(get_num_cpus)
if is_freebsd ; then
# 'seekflood' takes longer on FreeBSD and can timeout the test
# should run in ~2 minutes on Linux and FreeBSD
RUNS=3
else
RUNS=10
fi
for i in $(seq 1 $RUNS) ; do
# Each run takes around 12 seconds.
log_must $STF_SUITE/tests/functional/cp_files/seekflood 2000 $CPUS