Skip to content

Commit

Permalink
ZTS: Change cp_stress to fit timings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcmilk committed Jul 21, 2024
1 parent 1ae76bf commit 414ad7e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/zfs-tests/tests/functional/cp_files/cp_stress.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -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
RUNS=3
else
RUNS=10
fi

# should run in ~2 minutes on Linux and FreeBSD
RUNS=3
for i in $(seq 1 $RUNS) ; do
# Each run takes around 12 seconds.
log_must $STF_SUITE/tests/functional/cp_files/seekflood 2000 $CPUS
Expand Down

0 comments on commit 414ad7e

Please sign in to comment.