]> git.pld-linux.org Git - packages/parted.git/blob - 0055-tests-Stop-timing-t9040-1172675.patch
- rel 4; tons of patches from FC
[packages/parted.git] / 0055-tests-Stop-timing-t9040-1172675.patch
1 From 582d7cddcda260684d2bca7265294dc651bcb091 Mon Sep 17 00:00:00 2001
2 From: "Brian C. Lane" <bcl@redhat.com>
3 Date: Mon, 29 Feb 2016 16:54:05 -0800
4 Subject: [PATCH 55/75] tests: Stop timing t9040 (#1172675)
5
6 parted doesn't have any control over how long this takes, there is no
7 reason to consider this a parted bug if it takes longer than expected.
8
9 Resolves: rhbz#1172675
10 (cherry picked from commit fdd2e12b504c1d8a7829055cf8195d4aae4cd708)
11 ---
12  tests/t9040-many-partitions.sh | 10 ----------
13  1 file changed, 10 deletions(-)
14
15 diff --git a/tests/t9040-many-partitions.sh b/tests/t9040-many-partitions.sh
16 index a3af5e7..4f58658 100644
17 --- a/tests/t9040-many-partitions.sh
18 +++ b/tests/t9040-many-partitions.sh
19 @@ -53,9 +53,7 @@ while :; do
20  done
21  
22  # Time the actual command:
23 -t0=$(date +%s.%N)
24  parted -m -a min -s $scsi_dev mklabel gpt $cmd u s p > out 2>&1 || fail=1
25 -t_final=$(date +%s.%N)
26  
27  i=1
28  while :; do
29 @@ -64,14 +62,6 @@ while :; do
30      printf "$i:${s}s:${e}s:${partition_sectors}s::p$i:;\n" >> exp
31      test $i = $n_partitions && break; i=$((i+1))
32  done
33 -
34 -# Fail the test if it takes too long.
35 -# On Fedora 16, this takes about 10 seconds for me.
36 -# With Fedora-12-era kernels, it typically took more than 150 seconds.
37 -$AWK "BEGIN {d = $t_final - $t0; n = $n_partitions; st = 60 < d;"\
38 -' printf "created %d partitions in %.2f seconds\n", n, d; exit st }' /dev/null \
39 -    || fail=1
40 -
41  compare exp out || fail=1
42  
43  Exit $fail
44 -- 
45 2.9.3
46
This page took 0.059797 seconds and 3 git commands to generate.