chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: Check that archive skew machinery reports warning
[dgit.git]
/
tests
/
tests
/
clone-skew
diff --git
a/tests/tests/clone-skew
b/tests/tests/clone-skew
index 39fcb412fb0ddc0e09f4c69880a9ba043ac639a8..dd51acde69897048b5b98df012776c33f5226009 100755
(executable)
--- a/
tests/tests/clone-skew
+++ b/
tests/tests/clone-skew
@@
-23,7
+23,11
@@
perl -i -ne '
' $tmp/aq/package.sid.$p
t-aq-archive-updated sid $p
' $tmp/aq/package.sid.$p
t-aq-archive-updated sid $p
-t-dgit clone $p
+LC_MESSAGES=C \
+t-dgit clone $p 2>&1 |tee got.message
+
+grep 'Warning: archive skew detected.' got.message
+egrep 'We were able to obtain only *1.0-1$' got.message
cd $p
t-cloned-fetched-good
cd $p
t-cloned-fetched-good