From 270e9275117a9833a1dfd447d1940b8d100a6fca Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 28 Dec 2022 12:04:15 +0000 Subject: 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 --- tests/tests/debpolicy-newreject | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3