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

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