This is unstable! I have just seen it vary spontaneously in the
middle of a test run, resulting in this:
++ diff -u ../before ../after
--- ../before 2017-01-08 21:39:48.
176033763 +0000
+++ ../after 2017-01-08 21:39:48.
208033833 +0000
@@ -1,2 +1,2 @@
- 208380 4 -rw-rw-r-- 9 ian ian 236 Nov 6 20:49 /home/ian/things/Dgit/2dgit/tests/tmp/orig-include-exclude-chkquery/mirror/pool/main/example_1.0.orig-docs.tar.gz
- 208381 4 -rw-rw-r-- 8 ian ian 373 Nov 6 20:49 /home/ian/things/Dgit/2dgit/tests/tmp/orig-include-exclude-chkquery/mirror/pool/main/example_1.0.orig.tar.gz
+ 208380 4 -rw-rw-r-- 10 ian ian 236 Nov 6 20:49 /home/ian/things/Dgit/2dgit/tests/tmp/orig-include-exclude-chkquery/mirror/pool/main/example_1.0.orig-docs.tar.gz
+ 208381 4 -rw-rw-r-- 9 ian ian 373 Nov 6 20:49 /home/ian/things/Dgit/2dgit/tests/tmp/orig-include-exclude-chkquery/mirror/pool/main/example_1.0.orig.tar.gz
+ test 1 = 0
+ t-report-failure
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Internal improvements.
* badcommit-rewrite: Fix operation using installed version of fixup.
* Arrange to pass --debug-quick-random to gpg-agent.
+ * Strip block count out of find -ls output - it is unstable!
--
test-push-2
origs_findls () {
- find $tmp/mirror -name '*orig*' -ls
+ find $tmp/mirror -name '*orig*' -ls \
+ | perl -pe 's/^(\s*\d+\s+\d+\s+\S+\s)\s*\d+(\s)/$1$2/'
}
# check that dgit stripped out the orig update