X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib;h=3c04155a2ddbe398ba480030186b1ab8add23186;hb=4523f77bba9b97925030bcf641584a4a74819178;hp=4ddd6d8ac7451d34a5728b759bac0c5a52ef0f64;hpb=210a3e19c0f0e76b71d46c2bd070b90d504231c1;p=dgit.git diff --git a/tests/lib b/tests/lib index 4ddd6d8a..3c04155a 100644 --- a/tests/lib +++ b/tests/lib @@ -12,6 +12,7 @@ t-report-failure () { rc=$1 cat <&2 TEST FAILED +cwd: $PWD funcs: ${FUNCNAME[*]} lines: ${BASH_LINENO[*]} files: ${BASH_SOURCE[*]} @@ -53,6 +54,7 @@ tmp=`pwd` t-set-using-tmp +test -f $tmp/.save-env || \ env -0 >$tmp/.save-env ln -f $troot/ssh ssh @@ -410,7 +412,7 @@ t-dgit () { {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{' $dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \ ${dgit_config_debian_alias-"--config-lookup-explode=dgit-distro.debian.alias-canon"} \ - ${distro--dtest-dummy} ${distro+${distro:+-d}${distro}} \ + ${distro+${distro:+-d}}${distro--dtest-dummy} \ $DGIT_TEST_OPTS $DGIT_TEST_DEBUG \ -k39B13D8A $t_dgit_xopts "$@" : '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} @@ -782,6 +784,7 @@ t-822-field () { t-defdistro () { export DGIT_TEST_DISTRO='' + distro='' t-git-config dgit-suite.unstable.distro test-dummy } @@ -1023,7 +1026,9 @@ t-dsd () { } t-policy-admin () { + : '((((((((((((((((((((((((((((((((((((((((' ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@" + : '))))))))))))))))))))))))))))))))))))))))' } t-policy-nonexist () { @@ -1055,8 +1060,10 @@ t-debpolicy () { } t-policy-periodic () { + : '((((((((((((((((((((((((((((((((((((((((' ${DGIT_REPOS_SERVER_TEST-dgit-repos-server} \ test-dummy $drs_dispatch '' --cron + : '))))))))))))))))))))))))))))))))))))))))' } t-restrict () { @@ -1084,6 +1091,8 @@ t-alt-test () { t-chain-test "${t#*-}" } +t-git-config dgit.default.old-dsc-distro test-dummy + case "$0" in */gnupg) ;; *) t-setup-import gnupg ;;