Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Guard a test against wc that pads its output with whitespace
author
Junio C Hamano
<junkio@cox.net>
Tue, 27 Dec 2005 18:51:23 +0000
(10:51 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 27 Dec 2005 19:08:57 +0000
(11:08 -0800)
Spotted by Johannes.
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t5300-pack-object.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
08337a9
)
diff --git
a/t/t5300-pack-object.sh
b/t/t5300-pack-object.sh
index 1510ea9fcc2f02a6c7490d0a613111859140a298..de45ac4e0fcea5b7acab245af9876b58ec1ccea3 100755
(executable)
--- a/
t/t5300-pack-object.sh
+++ b/
t/t5300-pack-object.sh
@@
-168,7
+168,7
@@
test_expect_success \
: sum of the index file itself &&
l=`wc -c <test-3.idx` &&
: sum of the index file itself &&
l=`wc -c <test-3.idx` &&
- l=`expr
"$l"
- 20` &&
+ l=`expr
$l
- 20` &&
cp test-1-${packname_1}.pack test-3.pack &&
dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
if git-verify-pack test-3.pack
cp test-1-${packname_1}.pack test-3.pack &&
dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
if git-verify-pack test-3.pack