git: ec5fcc711384 - stable/14 - makefs: tests: Double the timeout of ZFS compression test
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Nov 2026 00:21:44 UTC
The branch stable/14 has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=ec5fcc711384df7ce72e9f24874034ef9d80937f
commit ec5fcc711384df7ce72e9f24874034ef9d80937f
Author: Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2026-01-05 20:31:40 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-24 00:19:53 +0000
makefs: tests: Double the timeout of ZFS compression test
The test makefs_zfs_tests:compression is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.
While here, check if the file exists before cleaning up, otherwise, cat
may fail.
Reported by: Jenkins
Reviewed by: asomers
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D54424
(cherry picked from commit 9f28e92637e9a29124f407b74d7665a921865a53)
---
usr.sbin/makefs/tests/makefs_zfs_tests.sh | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/usr.sbin/makefs/tests/makefs_zfs_tests.sh b/usr.sbin/makefs/tests/makefs_zfs_tests.sh
index 22b81d93267d..6f7b568531a0 100644
--- a/usr.sbin/makefs/tests/makefs_zfs_tests.sh
+++ b/usr.sbin/makefs/tests/makefs_zfs_tests.sh
@@ -41,14 +41,18 @@ common_cleanup()
# Try to force a TXG, this can help catch bugs by triggering a panic.
sync
- pool=$(cat $TEST_ZFS_POOL_NAME)
- if zpool list "$pool" >/dev/null; then
- zpool destroy "$pool"
+ if [ -f "$TEST_ZFS_POOL_NAME" ]; then
+ pool=$(cat $TEST_ZFS_POOL_NAME)
+ if zpool list "$pool" >/dev/null; then
+ zpool destroy "$pool"
+ fi
fi
- md=$(cat $TEST_MD_DEVICE_FILE)
- if [ -c /dev/"$md" ]; then
- mdconfig -d -u "$md"
+ if [ -f "$TEST_MD_DEVICE_FILE" ]; then
+ md=$(cat $TEST_MD_DEVICE_FILE)
+ if [ -c /dev/"$md" ]; then
+ mdconfig -d -u "$md"
+ fi
fi
}
@@ -128,6 +132,12 @@ basic_cleanup()
# Try configuring various compression algorithms.
#
atf_test_case compression cleanup
+compression_head()
+{
+ # Double the default timeout to make it pass on emulated architectures
+ # on ci.freebsd.org
+ atf_set "timeout" 600
+}
compression_body()
{
create_test_inputs