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

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