[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: cp/sparse-fiemap: use "seq 99q" in place of "head -99"
From: |
Bernhard Voelker |
Subject: |
[PATCH] tests: cp/sparse-fiemap: use "seq 99q" in place of "head -99" |
Date: |
Tue, 21 Jun 2011 10:24:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 |
There was still an obsolete use of "head -[1-9]" in tests.
The following patch replaces it.
From 8246020de1c8bbf24db2cc98a0df096f2e799452 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <address@hidden>
Date: Tue, 21 Jun 2011 10:10:39 +0200
Subject: [PATCH] tests: cp/sparse-fiemap: use "seq 99q" in place of
"head -99"
* tests/cp/sparse-fiemap: Use "seq 99q" in place of "head -99".
The latter is officially obsolete but more portable than "head -n99".
---
tests/cp/sparse-fiemap | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/cp/sparse-fiemap b/tests/cp/sparse-fiemap
index 3d34077..229ad78 100755
--- a/tests/cp/sparse-fiemap
+++ b/tests/cp/sparse-fiemap
@@ -106,7 +106,7 @@ for i in $(seq 1 2 21); do
|| {
warn_ ignoring filefrag-reported extent map differences
# Show the differing extent maps.
- head -99 ff1 ff2
+ sed 99q ff1 ff2
}
fi
test $fail = 1 && break 2
--
1.7.3.4
Have a nice day,
Berny
- [PATCH] tests: cp/sparse-fiemap: use "seq 99q" in place of "head -99",
Bernhard Voelker <=