summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-28 12:04:15 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-28 12:07:44 +0000
commit270e9275117a9833a1dfd447d1940b8d100a6fca (patch)
treeb0377998f373e24c060ee567a776da6047355e5a /tests
parentc1d7a19f768fb94ff8d7eb02066b565ec7bfbd9e (diff)
tests: Bodge debpolicy-newreject for forthcoming work
The early detection is going to change quite a few some error messages, since they'll be generated from different information in a different way. For now, pass the force option that forces the previous behaviour, where the server rejects it. That retains the error message. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/debpolicy-newreject6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject
index e02abd4..26c6ae8 100755
--- a/tests/tests/debpolicy-newreject
+++ b/tests/tests/debpolicy-newreject
@@ -114,12 +114,14 @@ t-dgit push
: "check that uploader can't force it now"
t-expect-push-fail "not fast forward on dgit branch" \
-t-dgit --deliberately-not-fast-forward push
+t-dgit --deliberately-not-fast-forward push --force-push-tainted
+# TODO remove --force-push-tainted and test both local and remote reject
t-dgit pull
t-dgit build
t-expect-push-fail \
'Reason: rewound suite sid; --deliberately-not-fast-forward specified' \
-t-dgit --force-reusing-version push
+t-dgit --force-reusing-version push --force-push-tainted
+# TODO remove --force-push-tainted and test both local and remote reject
t-ok