diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-16 21:40:29 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-16 21:40:29 +0100 |
commit | 4d5ef701bf95a1c60a5cc1b9f5c4d771ac49375a (patch) | |
tree | b84199fcd94bd4c2700c995c3ec093d113a77284 /tests/tests/import-dsc | |
parent | 18413810f983efbd083a2fd0cbc2c2cbbadc558b (diff) | |
parent | a80f7d09b0f92b5e1bc39f828f7972f3ff7c41be (diff) |
Merge branch 'stable' into HEAD
Diffstat (limited to 'tests/tests/import-dsc')
-rwxr-xr-x | tests/tests/import-dsc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/tests/import-dsc b/tests/tests/import-dsc index 073ba7b..bdd849c 100755 --- a/tests/tests/import-dsc +++ b/tests/tests/import-dsc @@ -72,6 +72,28 @@ git init check-import $troot/pkg-srcs 1.0-1 +cd .. +v=1.0-1+absurd +rm -f ${p}_* +dsc=$troot/pkg-srcs/${p}_${v}.dsc +cd $p.2 + +cp $dsc .. +t-expect-fail 'it does not exist' \ +check-import .. $v + +mkdir ../enoents +cp $dsc ../enoents +t-expect-fail 'No such file or directory' \ +check-import ../enoents $v + +cd .. +rm -f ${p}_${v}.dsc +dget -du file://$dsc +cd $p.2 + +check-import .. $v + t-expect-fail "Your git tree does not have that object" \ check-import ../mirror/pool/main 1.2 --no-chase-dsc-distro |