17 lines: ${BASH_LINENO[*]}
18 files: ${BASH_SOURCE[*]}
23 trap 'test $? = 0 || t-report-failure' EXIT
25 t-filter-out-git-hyphen-dir
29 : ${DGIT_TEST_DEBUG=-D}
30 export DGIT_TEST_DEBUG
32 : ${DGIT_TEST_DISTRO+ ${distro=${DGIT_TEST_DISTRO}}}
34 export GIT_COMMITTER_DATE='1515000000 +0100'
35 export GIT_AUTHOR_DATE='1515000000 +0100'
39 testname="${DGIT_TEST_TESTNAME-${0##*/}}"
40 export DGIT_TEST_TROOT=$troot
43 if [ x"$tmp" = x ]; then
44 export DGIT_TEST_BYHAND=1
47 tmp=tests/tmp/$testname
50 elif [ "x$DGIT_TEST_TMPBASE" != x ]; then
51 tmpbase="$DGIT_TEST_TMPBASE"
59 test -f $tmp/.save-env || \
60 env -0 >$tmp/.save-env
64 export DEBCHANGE_VENDOR=dpkg
66 mkdir -p $tmp/incoming
67 cat <<END >$tmp/dput.cf
70 incoming = $tmp/incoming
74 : ${t_archive_method:=aq}
75 : ${tagpfx:=archive/test-dummy}
76 : ${suitespecs:=sid:unstable}
79 GIT_COMMITTER_DATE="$(( ${GIT_COMMITTER_DATE%% *} + 1 )) ${GIT_COMMITTER_DATE#* }"
80 GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE"
84 local mpat="$1"; shift
87 LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output
88 local ps="${PIPESTATUS[*]}"
92 "0 0") fail "command unexpectedly succeeded (instead of: $mpat)" ;;
94 *) fail "tee failed" ;;
97 t-grep-mpat "$mpat" $tmp/t.output
108 E:*) grepper=egrep ;;
109 F:*) grepper=fgrep ;;
110 *) fail "bad mpat prefix in $mpat";;
116 $grepper -e "$mpat" "$file" ||
117 fail "message not found"
120 t-expect-push-fail () {
121 local mpat="$1"; shift
123 local triedpush; triedpush=`git rev-parse HEAD`
126 t-expect-fail "$mpat" "$@"
128 diff $tmp/show-refs.{pre,post}-push
130 t-git-objects-not-present '' $triedpush
132 eval "$t_expect_push_fail_hook"
135 t-git-objects-not-present () {
136 # t-git-objects-not-present GITDIR|'' OBJID [...]
137 # specifying '' means the repo for package $p
138 local gitdir="${1-$dgitrepo}"
140 if ! [ -e "$gitdir" ]; then return; fi
143 t-expect-fail 'unable to find' \
149 local whichoutput=$1; shift
150 local whichrepo=${1-$dgitrepo}
151 local outputfile="$tmp/show-refs.$whichoutput"
154 if test -d $whichrepo; then
162 local edittree=$1.edit
163 if test -d "$edittree"; then
164 cp -a "$edittree"/* .
172 t-untar $troot/worktrees/${p}_$1
175 t-select-package () {
177 dgitrepo=$tmp/git/$p.git
184 local gs=$troot/git-srcs/${p}_$v.git
185 (set -e; cd $tmp/git; t-untar $gs)
190 (set -e; cd $tmp/git; tar xf $troot/git-template.tar)
193 t-salsa-add-remote () {
194 local d=$tmp/salsa/$p
196 (set -e; cd $d; git init --bare)
197 git remote add ${1-origin} $d
200 t-git-merge-base () {
201 git merge-base $1 $2 || test $? = 1
205 # t-has-ancestor ANCESTOR
206 # (CHILD is implicit, HEAD)
207 local now; now=`git rev-parse HEAD`
208 local ancestor; ancestor=`git rev-parse $1^{}`
209 local mbase; mbase=`t-git-merge-base $ancestor $now`
210 if [ x$mbase != x$ancestor ]; then
211 fail "not ff $ancestor..$now, $mbase != $ancestor"
215 t-has-parent-or-is () {
216 # t-has-parent-or-is CHILD PARENT
220 parents=$(git show --pretty=format:' %P %H ' "$child")
221 parent=$(git rev-parse "$parent~0")
224 *) fail "child $child lacks parent $parent" ;;
228 t-prep-newpackage () {
235 if ! git show-ref --verify --quiet refs/heads/master; then
236 git branch -m dgit/sid master
244 t-archive-none-$t_archive_method
246 t-archive-none-aq () {
247 mkdir -p $tmp/aq/dsc_in_suite $tmp/mirror/pool/main
253 for suitespec in $suitespecs; do
254 local suite=${suitespec%%:*}
255 local sname=${suitespec#*:}
257 >$tmp/aq/package.$suite.$p
258 t-aq-archive-updated $suite $p
260 >$tmp/aq/package.new.$p
261 t-aq-archive-updated new $p
263 ln -sf $suite $tmp/aq/dsc_in_suite/$sname
265 cat <<END >>$tmp/aq/suites
268 "archive" : "ftp-master",
269 "codename" : "$suite",
282 cat <<END >>$tmp/aq/suites
288 t-aq-archive-updated () {
291 local suitedir=$tmp/aq/dsc_in_suite/$suite
293 perl <$tmp/aq/package.$suite.$p >$suitedir/$p -wne '
297 m{^(\S+) (\w+) ([^ \t/]+)/(\S+)} or die;
305 my $json = JSON->new->canonical();
306 print $json->encode(\@v) or die $!;
311 t-archive-process-incoming () {
313 mv $tmp/incoming/${p}_* $tmp/mirror/pool/main/
314 t-archive-query "$suite"
319 local dscf=main/${p}_${v}.dsc
320 t-archive-query-$t_archive_method "$suite" "$p" "$v" "$dscf"
322 t-archive-query-aq () {
327 local sha; sha=`sha256sum <$tmp/mirror/pool/$dscf`
328 echo "${v} ${sha% -} $dscf" >>$tmp/aq/package.$suite.${p}
329 t-aq-archive-updated $suite $p
335 local dscf=${p}_$2.dsc
336 rm -f $tmp/mirror/pool/main/${p}_*
337 ln $troot/pkg-srcs/${p}_${2%-*}* $tmp/mirror/pool/main/
338 t-archive-query $suite
341 (set -e; cd $tmp/extract; dpkg-source -x ../mirror/pool/main/$dscf)
344 t-git-dir-time-passes () {
345 touch -d 'last year' $dgitrepo
349 local gitdir=$dgitrepo
352 if test -e "$gitdir"; then fail "$gitdir exists"; fi
355 public) wantstat='7[75]5' ;;
356 secret) wantstat='7[70]0' ;;
357 *) fail "$1 t-git-dir-check ?" ;;
359 gotstat=`stat -c%a $gitdir`
361 *$wantstat) return ;;
362 *) fail "$gitdir has mode $gotstat, expected $wantstat" ;;
366 t-expect-fsck-fail () {
367 echo >>$tmp/fsck.expected-errors "$1"
371 local fsckerrs=$(git rev-parse --git-dir)/dgit-test-fsck.errs
374 LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \
376 ps="${PIPESTATUS[*]}"
380 if [ -f $tmp/fsck.expected-errors ]; then
381 pats=(-w -f $tmp/fsck.expected-errors)
385 pats+=(-e 'notice: HEAD points to an unborn branch')
386 pats+=(-e 'notice: No default references')
389 grep -v "${pats[@]}" $fsckerrs
393 1) ;; # no unexpected errors
394 0) fail "unexpected messages from git-fsck" ;;
395 *) fail "grep of git-fsck failed" ;;
402 for d in $tmp/*/.git $tmp/git/*.git; do
410 : '========================================'
415 t-rm-dput-dropping () {
416 rm -f $tmp/${p}_${v}_*.upload
420 local dgit=${DGIT_TEST-dgit}
423 {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{'
424 $dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \
425 ${dgit_config_debian_alias-"--config-lookup-explode=dgit-distro.debian.alias-canon"} \
426 ${DGIT_GITDEBREBASE_TEST+--git-debrebase=}${DGIT_GITDEBREBASE_TEST} \
427 ${distro+${distro:+-d}}${distro--dtest-dummy} \
428 $DGIT_TEST_OPTS $DGIT_TEST_DEBUG \
429 -kBCD22CD83243B79D3DFAC33EA3DBCBC039B13D8A $t_dgit_xopts "$@"
430 : '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
437 (export LC_ALL=C.UTF-8
438 if [ "$DGIT_TEST_INTREE" ]; then
439 make -C $DGIT_TEST_INTREE $page.$section.view
446 diff --exclude=.git --exclude=.pc -ruN $*
449 t-files-notexist () {
458 t-cloned-fetched-good () {
459 t-diff-nogit ../extract/$p-${v%-*} .
460 t-clean-on-branch dgit/sid
463 refs/heads/dgit/sid \
464 refs/remotes/dgit/dgit/sid
465 t-refs-notexist refs/dgit/unstable refs/remotes/dgit/dgit/unstable
469 printf "%s${1:+\n}" "$1" >$tmp/t.want
472 diff $tmp/t.want $tmp/t.got
475 t-clean-on-branch () {
476 t-output "## $1" git status -b --porcelain
484 local import=IMPORT.${DGIT_TEST_TESTNAME-${0##*/}}
485 exec 4>$tmp/$import.new
488 for vn in $savevars; do
489 perl >&4 -"I$root" -MDebian::Dgit -e '
490 printf "%s=%s\n", $ARGV[0], shellquote $ARGV[1]
491 ' $vn "$(eval "printf '%s\n' \"\$$vn\"")"
494 (set -e; cd $tmp; tar cf $import.tar $savedirs)
496 printf >&4 "\n%s\n" "$importeval"
498 mv -f $tmp/$import.new $tmp/$import
506 if [ "x$tmpbase" = x ]; then
507 # ADTTMP was set on entry to tests/lib, so we
508 # are not sharing tmp area between tests
510 lock="$tmp/.dummy.lock"
512 setupsrc="$tmpbase/$setupname"
513 lock="$setupsrc.lock"
516 local simport="$setupsrc/IMPORT.$setupname"
518 if ! [ -e "$simport" ]; then
519 with-lock-ex -w "$lock" \
520 xargs -0 -a $tmp/.save-env \
523 setupname="$1"; shift
525 if [ -e "$simport" ]; then exit 0; fi
527 "tests/setup/$setupname"
528 ' x "$root" "$setupname" "$simport"
531 if [ "x$setupsrc" != "x$tmp" ]; then
532 (set -e; cd $tmp; tar xf "$simport.tar")
538 t-git-get-ref-exact () {
540 # does not dereference, unlike t-git-get-ref
543 *) fail "t-git-get-ref-exact bad $ref" ;;
545 git for-each-ref --format='%(objectname)' "[r]efs/${ref#refs/}"
552 *) fail "t-git-get-ref bad $ref" ;;
554 (git show-ref -d $1 || test $? = 1) | perl -ne '
555 $x = $1 if m#^(\w+) \Q'$1'\E(?:\^\{\})?$#;
556 END { print "$x\n" if length $x; }
560 t-ref-same-exact () {
562 local val; val=`t-git-get-ref-exact $name`
563 t-ref-same-val "$name" $val
568 local val; val=`t-git-get-ref $name`
569 t-ref-same-val "$name" $val
573 local val; val=`git rev-parse HEAD`
574 t-ref-same-val HEAD $val
580 case "${t_ref_val-unset}" in
583 *) fail "ref varies: ($name)\
584 ${val:-nothing} != ${t_ref_val:-nothing} (${t_ref_names[*]})" ;;
587 t_ref_names+=("$name")
590 t-refs-same-start () {
605 val=`t-git-get-ref $g`
606 if [ "x$val" != x ]; then
607 fail "ref $g unexpectedly exists ($val)"
613 echo refs/tags/$tagpfx/${v//\~/_}
617 git log -n1 --pretty=format:"$1" "$2"
620 t-sametree-parent () {
623 local ctree; ctree=$(t-format-ref '%T' "$ref")
626 for parent in $(t-format-ref '%P' "$ref"); do
627 local ptree; ptree=$(t-format-ref '%T' "$parent")
628 if [ "x$ptree" = "x$ctree" ]; then
632 case "$psame" in ""|" * *") break ;; esac
638 t-check-pushed-master () {
639 local master; master=`t-git-get-ref refs/heads/master`
640 if [ x$master = x$t_ref_val ]; then return; fi
641 if [ x$master = x ]; then fail "failed to push master"; fi
642 # didn't update master, it must be not FF
643 local mbase; mbase=`t-git-merge-base $master $t_ref_val`
644 if [ x$mbase = x$master ]; then fail "failed to ff master"; fi
647 t-push-was-source-only () {
649 t-files-notexist $tmp/incoming/${p}_${v}_*.deb \
650 $tmp/incoming/${p}_${v}_*.udeb
651 # we permit _source.buildinfo files; see test_changes_source_only()
652 for f in $tmp/incoming/${p}_${v}_*.buildinfo; do
655 *_source.buildinfo) ;;
656 *) fail "non-source-only file $f exists!" ;;
664 local suite=${2:-sid}
670 t-pushed-good-core () {
674 refs/remotes/dgit/dgit/$suite
676 refs/heads/dgit/unstable \
677 refs/remotes/dgit/dgit/unstable
678 (set -e; cd $dgitrepo
682 ${t_check_pushed_master:- : NOT-DRS-NO-CHECK-PUSHED-MASTER}
686 git verify-tag `t-v-tag`
689 t-splitbrain-pushed-good--unpack () {
694 ln -s $tmp/mirror/pool/main/*.orig*.tar* .
695 ln -s $tmp/incoming/*.orig*.tar* . ||:
696 ln -s $incoming_dsc .
697 ln -s ${incoming_dsc/.dsc/.debian.tar}* .
698 dpkg-source "$@" -x *.dsc
701 git fetch ../../$p "refs/tags/*:refs/tags/*"
704 t-splitbrain-pushed-good--checkprep () {
706 git rm --cached -r --ignore-unmatch .pc
709 t-splitbrain-pushed-good--checkdiff () {
711 t-splitbrain-pushed-good--checkprep
712 t-output "" git diff --stat --cached $tag
715 t-splitbrain-pushed-good-start () {
716 dep14tag=refs/tags/test-dummy/${v//\~/_}
718 t-output "" git status --porcelain
720 t-refs-same $dep14tag
721 (set -e; cd $dgitrepo; t-refs-same $dep14tag)
722 git merge-base --is-ancestor $dep14tag $dgittag
725 t-ref-same refs/heads/split.p
726 case "$(t-git-get-ref refs/heads/split.b)" in
728 "$(git rev-parse refs/heads/split.p^0)") ;;
729 "$(git rev-parse refs/heads/split.p^1)") ;;
736 t-splitbrain-pushed-good--unpack
737 t-splitbrain-pushed-good--checkdiff $dgittag
739 t-splitbrain-pushed-good-end-made-dep14 () {
740 t-splitbrain-pushed-good--checkdiff $dep14tag
744 t-splitbrain-rm-gitignore-patch () {
746 next unless $_ eq "auto-gitignore\n";
749 rename "debian/patches/$_", "../t-auto-gitignore" or die $!;
751 ' debian/patches/series
754 t-gbp-pushed-good () {
755 local suite=${1:-sid}
756 t-splitbrain-pushed-good-start
758 # Right, now we want to check that the maintainer tree and
759 # the dgit tree differ in exactly the ways we expect. We
760 # achieve this by trying to reconstruct the maintainer tree
761 # from the dgit tree.
763 # So, unpack it withut the patches applied
764 t-splitbrain-pushed-good--unpack --skip-patches
766 # dgit might have added a .gitignore patch, which we need to
768 t-splitbrain-rm-gitignore-patch
770 # Now the result should differ only in non-debian/ .gitignores
771 t-splitbrain-pushed-good--checkprep
772 git diff --cached --name-only $dep14tag >../changed
774 next if !m#^debian/# && m#(^|/)\.gitignore#;
778 # If we actually apply the gitignore patch by hand, it
780 if [ -f ../t-auto-gitignore ]; then
781 patch --backup-if-mismatch -p1 -u <../t-auto-gitignore
784 t-splitbrain-pushed-good-end-made-dep14
787 t-unapplied-pushed-good () {
788 t-splitbrain-pushed-good-start
789 t-splitbrain-pushed-good--unpack --skip-patches
790 t-splitbrain-pushed-good-end-made-dep14
793 t-dpm-pushed-good () {
794 t-splitbrain-pushed-good-start
795 t-splitbrain-pushed-good--unpack
796 t-splitbrain-rm-gitignore-patch
797 t-splitbrain-pushed-good-end-made-dep14
800 t-commit-build-push-expect-log () {
806 t-dgit push --new 2>&1 |tee $tmp/push.log
807 t-grep-mpat "$mpat" $tmp/push.log
814 use Dpkg::Control::Hash;
815 my $h = new Dpkg::Control::Hash allow_pgp=>1;
816 $h->parse(\*STDIN,"'"$file"'");
817 my $val = $h->{"'$field'"},"\n";
818 die "'"$file $field"'" unless defined $val;
824 export DGIT_TEST_DISTRO=''
826 t-git-config dgit-suite.unstable.distro test-dummy
836 "") '$var'="$tstunt" ;;
837 *) '$var'="$tstunt:$'$var'" ;;
843 t-tstunt--save-real () {
854 p="${p/:"$tmp/tstunt":/:}"
866 *) fail "did not find $f on PATH $PATH" ;;
869 local varname=${f//[^_0-9a-zA-Z]/_}
870 varname=DGIT_TEST_REAL_${varname^^}
873 : \${$varname:=\$real}
879 local tstunt=$tmp/tstunt
880 t-stunt-envvar PATH $tstunt
881 t-stunt-envvar PERLLIB $tstunt
884 t-tstunt--save-real $f
886 local d="$tstunt/${f%/*}"
888 ln -sf "$troot/tstunt/$f" "$d"/.
892 t-tstunt-parsechangelog () {
893 t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
896 t-tstunt-lintian () {
900 t-tstunt-debuild () {
905 local dsc=${p}_${v}.dsc
906 incoming_dsc=$tmp/incoming/$dsc
911 local val; val=`t-822-field $incoming_dsc Dgit`
914 die "Dgit $_ ?" unless m/^\w+\b/;
915 print $&,"\n" or die $!;
917 t-ref-same-val $incoming_dsc "$val"
924 debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc || test $? = 1) \
928 t-gbp-unapplied-pq2qc () {
929 # does `gbp pq export'
930 # commits the resulting debian/patches on qc/BRANCH
931 # leaves us on qc/BRANCH (eg "qc/quilt-tip"))
932 # qc/BRANCH is not fast-forwarding
936 branch=`git symbolic-ref HEAD`
937 branch=${branch#refs/heads/}
940 */*) fail "unexpected branch $branch" ;;
943 git branch -f qc/$branch
944 git checkout qc/$branch
945 git add debian/patches
946 git commit -m 'Commit patch queue'
949 t-git-pseudo-merge () {
950 # like git merge -s ours
951 if [ ! "$git_pseuomerge_opts" ]; then
952 if git merge --help \
953 | grep -q allow-unrelated-histories; then
954 git_pseuomerge_opts='--allow-unrelated-histories'
956 git_pseuomerge_opts+=' -s ours'
958 git merge $git_pseuomerge_opts "$@"
961 t-gbp-example-prep-no-ff () {
962 t-tstunt-parsechangelog
963 t-archive example 1.0-1
971 git checkout -b patch-queue/quilt-tip-2 patch-queue/quilt-tip
974 echo '/* some comment */' >>src.c
976 git commit -m 'Add a comment to an upstream file'
978 t-gbp-unapplied-pq2qc
980 t-commit 'some updates' 1.0-2
983 t-gbp-example-prep () {
984 t-gbp-example-prep-no-ff
987 -m 'Pseudo-merge to make descendant of archive' \
988 remotes/dgit/dgit/sid
991 t-make-badcommit () {
993 git cat-file commit HEAD | \
994 perl -pe 's/^committer /commiter /' | \
995 git hash-object -w -t commit --stdin
997 t-expect-fsck-fail $badcommit
1002 v=${2:-${majorv:-1}.$revision}
1003 dch --force-distribution -v$v --distribution ${3:-unstable} "$1"
1004 git add debian/changelog
1006 revision=$(( ${revision-0} + 1 ))
1010 faketime @"${GIT_AUTHOR_DATE% *}" dch "$@"
1011 git commit -m "dch $*" debian/changelog
1015 git config --global "$@"
1019 t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext %S "
1020 t-git-config dgit-distro.test-dummy.git-check true
1021 t-git-config dgit-distro.test-dummy.git-create true
1022 t-git-config dgit-distro.test-dummy.dgit-tag-format new,old,maint
1023 cp $troot/gnupg/{dd.gpg,dm.gpg,dm.txt} $tmp/.
1024 cp $troot/suites $tmp/.
1025 cp $troot/suites $tmp/suites-master
1027 export t_check_pushed_master=t-check-pushed-master
1029 drs_dispatch=$tmp/distro=test-dummy
1032 if [ "x$DGIT_TEST_INTREE" != x ]; then
1033 ln -sf "$DGIT_TEST_INTREE" $drs_dispatch/dgit-live
1036 ln -sf $tmp/git $drs_dispatch/repos
1037 ln -sf $tmp/suites $tmp/suites-master $tmp/dm.txt $drs_dispatch/
1038 mkdir -p $drs_dispatch/keyrings
1039 ln -sf $tmp/dd.gpg $drs_dispatch/keyrings/debian-keyring.gpg
1040 ln -sf $tmp/dm.gpg $drs_dispatch/keyrings/debian-maintainers.gpg
1041 ln -sf /bin/true $drs_dispatch/policy-hook
1045 export tagpfx=archive/test-dummy
1046 t-git-config dgit-distro.test-dummy.dgit-tag-format new,maint
1049 export tagpfx=test-dummy
1050 t-git-config dgit-distro.test-dummy.dgit-tag-format old
1055 t-git-config dgit-distro.test-dummy.ssh "$troot/dsd-ssh"
1056 t-git-config dgit-distro.test-dummy.git-check ssh-cmd
1057 t-git-config dgit-distro.test-dummy.git-create true
1058 t-git-config dgit-distro.test-dummy.git-url \
1059 "ext::$troot/dsd-ssh X %S /dgit/test-dummy/repos"
1061 t-git-config dgit-distro.test-dummy.diverts.drs /drs
1062 t-git-config dgit-distro.test-dummy/drs.ssh "$troot/ssh"
1063 t-git-config dgit-distro.test-dummy/drs.git-url $tmp/git
1064 t-git-config dgit-distro.test-dummy/drs.git-check ssh-cmd
1065 t-git-config dgit-distro.test-dummy/drs.git-create ssh-cmd
1067 echo 'no-such-package* drs' >$drs_dispatch/diverts
1071 : '(((((((((((((((((((((((((((((((((((((((('
1072 ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@"
1073 : '))))))))))))))))))))))))))))))))))))))))'
1076 t-policy-nonexist () {
1077 ln -sf no-such-file-or-directory $drs_dispatch/policy-hook
1080 t-make-hook-link () {
1081 local hook=$1 # in infra/
1083 hook=${DGIT_INFRA_PFX}$hook
1086 *) hook=`type -P $hook` ;;
1088 ln -sf "$hook" $linkpath
1093 t-make-hook-link $policyhook $drs_dispatch/policy-hook
1098 t-policy dgit-repos-policy-debian
1101 t-policy-admin create-db
1104 t-policy-periodic () {
1105 : '(((((((((((((((((((((((((((((((((((((((('
1106 ${DGIT_REPOS_SERVER_TEST-dgit-repos-server} \
1107 test-dummy $drs_dispatch '' --cron
1108 : '))))))))))))))))))))))))))))))))))))))))'
1112 local restriction=$1
1113 (cd $root; t-restriction-$restriction >&2)
1117 : "Hopefully installed: $*"
1124 export DGIT_TEST_TESTNAME="$testname"
1125 export DGIT_TEST_TMPBASE="$tmpbase"
1133 t-chain-test "${t#*-}"
1136 t-git-config dgit.default.old-dsc-distro test-dummy
1138 for import in ${autoimport-gnupg}; do
1142 t-setup-import $import