Blame SOURCES/0001-tests-support-older-versions-of-timeout-in-r_corrupt.patch

f239de
From af09db229f74f447aec12e440252d8a94c049f26 Mon Sep 17 00:00:00 2001
f239de
From: Theodore Ts'o <tytso@mit.edu>
f239de
Date: Mon, 3 Jan 2022 22:45:37 -0500
f239de
Subject: [PATCH] tests: support older versions of timeout in r_corrupt_fs
f239de
f239de
Older versions of the timeout program in coreutils don't support the
f239de
-v option.  (This is apparently still in use in the GNU/FreeBSD Debain
f239de
port since coreutils hasn't built successfully since Coreutils version
f239de
8.28.)
f239de
f239de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
f239de
---
f239de
 tests/r_corrupt_fs/script | 2 +-
f239de
 1 file changed, 1 insertion(+), 1 deletion(-)
f239de
f239de
diff --git a/tests/r_corrupt_fs/script b/tests/r_corrupt_fs/script
f239de
index 08af91ed..f6d3a89d 100644
f239de
--- a/tests/r_corrupt_fs/script
f239de
+++ b/tests/r_corrupt_fs/script
f239de
@@ -17,7 +17,7 @@ $MKE2FS -q -F -t ext4 -o Linux -b 1024 $TMPFILE 32M >> $OUT.new 2>&1
f239de
 echo debugfs -w -R \"set_bg 1 free_blocks_count 65536\" /tmp/foo.img >> $OUT.new
f239de
 $DEBUGFS -w -R "set_bg 1 free_blocks_count 65536" $TMPFILE > /dev/null 2>&1
f239de
 
f239de
-if type timeout > /dev/null 2>&1 ; then
f239de
+if timeout -v 1s true > /dev/null 2>&1 ; then
f239de
    TIMEOUT="timeout -v 30s"
f239de
 else
f239de
    TIMEOUT=
f239de
-- 
f239de
2.34.1
f239de