From 3ec15f5373c474cf3e0e55b876a565a09f81c793 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 8 Jan 2017 23:37:27 +0000 Subject: test suite: protocol-compat: Even more solid checks Signed-off-by: Ian Jackson --- tests/tests/protocol-compat | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/tests/protocol-compat b/tests/tests/protocol-compat index b1b9025..fc3960a 100755 --- a/tests/tests/protocol-compat +++ b/tests/tests/protocol-compat @@ -11,14 +11,14 @@ prep () { } check () { - rm -rf $p.cloned + pd=$p.$suite t-refs-same-start t-archive-none $p t-archive-query $suite - t-dgit clone $p $suite $p.cloned - cd $p.cloned + t-dgit clone $p $suite $pd + cd $pd t-ref-head $1 @@ -30,9 +30,9 @@ check () { reset () { cd .. - rm -rf $p.cloned - mkdir $p.cloned - cd $p.cloned + rm -rf $pd + mkdir $pd + cd $pd git init } @@ -54,7 +54,7 @@ prep perl -i~ -pe 's/^(Dgit: \w+ \S+ \S+) (.*)/$1\n $2 EXTRA/' $dscf -check +check reset : ---------- older ---------- @@ -68,4 +68,14 @@ t-git-config dgit.default.old-dsc-distro test-dummy check +: ---------- expect fail ---------- + +pd=$p.fail + +t-git-config dgit.default.old-dsc-distro downstream + +t-expect-fail 'no configured url and .dsc provides no hint' \ +t-dgit clone $p $suite $pd + + t-ok -- cgit v1.2.3