]> git.pld-linux.org Git - packages/parted.git/blob - 0076-Increase-timeout-for-rmmod-scsi_debug-and-make-it-a-.patch
- release 6 (by relup.sh)
[packages/parted.git] / 0076-Increase-timeout-for-rmmod-scsi_debug-and-make-it-a-.patch
1 From 58986a509da1c6387435b27c4071944ee14613a2 Mon Sep 17 00:00:00 2001
2 From: "Brian C. Lane" <bcl@redhat.com>
3 Date: Fri, 24 Feb 2017 11:06:20 -0800
4 Subject: [PATCH 76/77] Increase timeout for rmmod scsi_debug and make it a
5  framework failure
6
7 On some hardware scsi_debug can take longer to remove. If this fails it
8 inevitably results in the next test failing since it cannot load
9 scsi_debug.
10
11 Increse the timeout to 40 loops (8 seconds), and if it hits the limit
12 without succeeding call framework_failure_
13
14 (cherry picked from commit 40e55a0819862d5dbe2098803735f8c48fb30b6d)
15 ---
16  tests/t-local.sh | 3 ++-
17  1 file changed, 2 insertions(+), 1 deletion(-)
18
19 diff --git a/tests/t-local.sh b/tests/t-local.sh
20 index 13073d2..2ba7ee1 100644
21 --- a/tests/t-local.sh
22 +++ b/tests/t-local.sh
23 @@ -27,13 +27,14 @@ scsi_debug_cleanup_()
24      # "Module scsi_debug is in use".
25      i=0
26      udevadm settle
27 -    while [ $i -lt 10 ] ; do
28 +    while [ $i -lt 40 ] ; do
29        rmmod scsi_debug \
30         && { test "$VERBOSE" = yes && warn_ $ME_ rmmod scsi_debug...; break; }
31        sleep .2 || sleep 1
32        i=$((i + 1))
33      done
34      udevadm settle
35 +    test $i = 40 && framework_failure_ rmmod scsi_debug failed.
36    fi
37    rm -fr $scsi_debug_lock_dir_
38  }
39 -- 
40 2.9.3
41
This page took 0.079408 seconds and 3 git commands to generate.