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

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