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