Blame SOURCES/0055-tests-Stop-timing-t9040-1172675.patch

003ee8
From 582d7cddcda260684d2bca7265294dc651bcb091 Mon Sep 17 00:00:00 2001
003ee8
From: "Brian C. Lane" <bcl@redhat.com>
003ee8
Date: Mon, 29 Feb 2016 16:54:05 -0800
003ee8
Subject: [PATCH 55/75] tests: Stop timing t9040 (#1172675)
003ee8
003ee8
parted doesn't have any control over how long this takes, there is no
003ee8
reason to consider this a parted bug if it takes longer than expected.
003ee8
003ee8
Resolves: rhbz#1172675
003ee8
(cherry picked from commit fdd2e12b504c1d8a7829055cf8195d4aae4cd708)
003ee8
---
003ee8
 tests/t9040-many-partitions.sh | 10 ----------
003ee8
 1 file changed, 10 deletions(-)
003ee8
003ee8
diff --git a/tests/t9040-many-partitions.sh b/tests/t9040-many-partitions.sh
003ee8
index a3af5e7..4f58658 100644
003ee8
--- a/tests/t9040-many-partitions.sh
003ee8
+++ b/tests/t9040-many-partitions.sh
003ee8
@@ -53,9 +53,7 @@ while :; do
003ee8
 done
003ee8
 
003ee8
 # Time the actual command:
003ee8
-t0=$(date +%s.%N)
003ee8
 parted -m -a min -s $scsi_dev mklabel gpt $cmd u s p > out 2>&1 || fail=1
003ee8
-t_final=$(date +%s.%N)
003ee8
 
003ee8
 i=1
003ee8
 while :; do
003ee8
@@ -64,14 +62,6 @@ while :; do
003ee8
     printf "$i:${s}s:${e}s:${partition_sectors}s::p$i:;\n" >> exp
003ee8
     test $i = $n_partitions && break; i=$((i+1))
003ee8
 done
003ee8
-
003ee8
-# Fail the test if it takes too long.
003ee8
-# On Fedora 16, this takes about 10 seconds for me.
003ee8
-# With Fedora-12-era kernels, it typically took more than 150 seconds.
003ee8
-$AWK "BEGIN {d = $t_final - $t0; n = $n_partitions; st = 60 < d;"\
003ee8
-' printf "created %d partitions in %.2f seconds\n", n, d; exit st }' /dev/null \
003ee8
-    || fail=1
003ee8
-
003ee8
 compare exp out || fail=1
003ee8
 
003ee8
 Exit $fail
003ee8
-- 
003ee8
2.9.3
003ee8