[PATCH v2 7/8] fstests: add soak duration to nfs template

Chuck Lever <[email protected]> Fri, 3 Oct 2025 16:19:55 -0400
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Luis Chamberlain <[email protected]>

Use the soak duration when enabled for NFS fstests.
Although current analysis (take scripts/workflows/lib/fstests.py
fstests_test_uses_soak_duration() and use it on a new script to
check.time) shows no tests run on NFS actually leverage soak duration.
But this can change with time.

Signed-off-by: Luis Chamberlain <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
---
 playbooks/roles/fstests/templates/nfs/nfs.config | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/playbooks/roles/fstests/templates/nfs/nfs.config b/playbooks/roles/fstests/templates/nfs/nfs.config
index b26c45c11bc3..5d0b98cebd3e 100644
--- a/playbooks/roles/fstests/templates/nfs/nfs.config
+++ b/playbooks/roles/fstests/templates/nfs/nfs.config
@@ -10,6 +10,10 @@ SCRATCH_DEV="{{ fstests_nfs_scratch_devpool }}"
 RESULT_BASE=$PWD/results/$HOST/$(uname -r)
 TEST_DEV={{ fstests_nfs_test_dev }}
 CANON_DEVS=yes
+{% if fstests_soak_duration > 0 -%}
+SOAK_DURATION={{ fstests_soak_duration }}
+{% endif %}
+
 {% if fstests_nfs_section_pnfs -%}
 
 # Test pNFS block
-- 
2.51.0