chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2e5d2
)
test suite: gitattributes: Check for expected warnings
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 Jan 2017 22:50:03 +0000
(22:50 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 16 Jan 2017 01:25:19 +0000
(
01:25
+0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gitattributes
patch
|
blob
|
history
diff --git
a/tests/tests/gitattributes
b/tests/tests/gitattributes
index 7b0818a0cf9177d5cc6f9fbe063b2372d272d102..2e24bba3ab7adfdaf33290fba28740cdd80d2f63 100755
(executable)
--- a/
tests/tests/gitattributes
+++ b/
tests/tests/gitattributes
@@
-96,12
+96,16
@@
sfmt_import () {
inst=$1
dgitargs=$2
refname="import.$sfmt-$inst"
+ brkerr=stderr.$sfmt-$inst.broken
mkdir $pdb-import-$inst
cd $pdb-import-$inst
git init
- t-dgit $dgitargs import-dsc ../${p}_${v}.dsc +$refname.broken
+ LC_MESSAGES=C \
+ t-dgit $dgitargs import-dsc ../${p}_${v}.dsc +$refname.broken \
+ 2>&1 |tee ../$brkerr
+ fgrep 'warning: source tree contains .gitattributes' ../$brkerr
git checkout $refname.broken
sha256sum af/* >../$sums.broken