chiark / gitweb /
test suite: lib-orig-include-exclude: Introduce origs_findls
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 22:07:43 +0000 (22:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 22:07:43 +0000 (22:07 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-orig-include-exclude

index 75a965630ac04b5c3627a8ddc04d31c231f24638..c3b7b43369f228f9cb727d4660bb86911891b01d 100644 (file)
@@ -38,12 +38,16 @@ grep orig ../${p}_${v}_*.changes
 
 test-push-2
 
 
 test-push-2
 
+origs_findls () {
+       find $tmp/mirror -name '*orig*' -ls
+}
+
 # check that dgit stripped out the orig update
 # check that dgit stripped out the orig update
-find $tmp/mirror -name '*orig*' -ls >../before
+origs_findls >../before
 
 t-archive-process-incoming sid
 
 
 t-archive-process-incoming sid
 
-find $tmp/mirror -name '*orig*' -ls >../after
+origs_findls >../after
 diff -u ../before ../after
 
 test-push-1 1.1-1.2 --ch:-sd
 diff -u ../before ../after
 
 test-push-1 1.1-1.2 --ch:-sd