From baa9de40ad22d98b51959054a50e46b2456d33d5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 13 Oct 2018 16:21:11 +0100 Subject: [PATCH] test suite: push-source-with-changes: Make it test -wdda We have plenty of other places where we used -wddn or ,no-check. Here we have an opportunity to test -wdda: create a ~ file (which would be ignored), clean everything else, and check that -wdda fails but the default (-wdd) succeds. Signed-off-by: Ian Jackson --- tests/tests/push-source-with-changes | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/tests/push-source-with-changes b/tests/tests/push-source-with-changes index 2a123c33..aed1b63c 100755 --- a/tests/tests/push-source-with-changes +++ b/tests/tests/push-source-with-changes @@ -23,7 +23,14 @@ t-dgit -C ../${p}_1.0_multi.changes push-source --new t-expect-fail F:'tree contains uncommitted files' \ t-dgit build-source -t-dgit -wddn build-source +cp debian/rules{,~} +git clean -df +ls debian/rules~ + +t-expect-fail F:'tree contains uncommitted files' \ +t-dgit -wdda build-source + +t-dgit build-source t-dgit -C ../${p}_1.0_source.changes push-source --new t-pushed-good master -- 2.30.2