chiark / gitweb /
test suite: run-all: Minor refactoring etc.
[dgit.git] / tests / lib-mirror
index c84c30c33edc3d3e81f0f1ac287c92733f0ebcde..25f0f90cf9513755e74bbcd5234168a17d0efe03 100644 (file)
@@ -9,7 +9,7 @@ t-mirror-setup () {
        mkdir $reposmirror
 
        mirror_hook=$drs_dispatch/mirror-hook
-       ln -sf ${DGIT_INFRA_PFX}dgit-mirror-rsync $mirror_hook
+       t-make-hook-link dgit-mirror-rsync $mirror_hook
 
        >$drs_dispatch/mirror-settings
        t-mirror-set remoterepos="$reposmirror"
@@ -22,14 +22,16 @@ t-mirror-set () {
 }
 
 t-mirror-hook () {
+       : '(((((((((((((((((((((((((((((((((((((((('
        "$mirror_hook" "$drs_dispatch" "$@"
+       : '))))))))))))))))))))))))))))))))))))))))'
 }
 
 t-check-mirrored () {
        t-reporefs master
        t-reporefs mirror $pmirror
        diff $tmp/show-refs.{master,mirror}
-       cat $queuedir/$p.log
+       cat $queuedir/$p.log ||:
        t-files-notexist $queuedir/$p.{n,a,lock,err}
 }