chiark / gitweb /
test suite: baredebian: Break up baredebian-test-core
[dgit.git] / tests / lib
index 29b68e73b99787d57ace56a77155f51cfb751038..3a5b29f432e4567137451bbe8116a3363f2749c5 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -40,6 +40,7 @@ export GIT_COMMITTER_DATE='1530000000 +0100'
 export GIT_AUTHOR_DATE='1530000000 +0100'
 
 export LC_CTYPE=C.UTF-8
+unset CDPATH
 
 root=`pwd`
 troot=$root/tests
@@ -1212,11 +1213,12 @@ t-tagupl-settings () {
 }
 
 t-tagupl-run-drs () {
+       local source=$1
        cd ..
        cd tagupl
 
        DGIT_DRS_ANY_URL=1 \
-       DGIT_DRS_MODE="tag2upload $tmp/$p $tagname" \
+       DGIT_DRS_MODE="tag2upload $source $tagname" \
         $troot/drs-git-ext 
 
        cd $tmp/$p
@@ -1224,13 +1226,16 @@ t-tagupl-run-drs () {
 
 t-tagupl-test () {
        ${DGIT_DEBPUSH_TEST-git debpush} \
-               --distro=test-dummy --no-push -u Senatus "$@"
+               --distro=test-dummy -u Senatus "$@"
 
        mkdir ../tagupl
-       t-tagupl-run-drs
+       t-tagupl-run-drs $tmp/pretend-salsa
+
+       cd ../pretend-salsa
+       t-refs-same refs/heads/master
+       cd ../$p
 
        t-dgit fetch
-       t-pushed-good master
 }
 
 t-buildproductsdir-config () {