chiark / gitweb /
test suite: push-source-with-changes: Make it test -wdda
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Oct 2018 15:21:11 +0000 (16:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Oct 2018 15:46:47 +0000 (16:46 +0100)
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 <ijackson@chiark.greenend.org.uk>
tests/tests/push-source-with-changes

index 2a123c3..aed1b63 100755 (executable)
@@ -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