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

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