chiark / gitweb /
test suite: mirror-private: test that package becomes public. (#849789)
[dgit.git] / tests / tests / downstream-gitless
index ab0c2593cf00bf2f3ddb25e87e2085cfa980769f..f3b3469041fdbbc38f073b04f6d476efbfc20c1b 100755 (executable)
@@ -3,6 +3,7 @@ set -e
 . tests/lib
 . $troot/lib-reprepro
 
+t-dependencies reprepro
 t-setup-import examplegit
 t-tstunt-parsechangelog
 
@@ -87,7 +88,12 @@ git init
 t-dgit import-dsc $dscf +x
 t-ref-same refs/heads/x
 git show x | grep Spong
-cd ..
 
+t-expect-fail 'Your git tree does not have that object' \
+t-dgit --no-chase-dsc-distro import-dsc $dscf +y
+
+cd ../$p
+t-dgit --no-chase-dsc-distro import-dsc $dscf +y
+git show y | grep Sid
 
 t-ok