chiark / gitweb /
test suite: tagupl: Drop a now-irrelevant chunk of commented code
[dgit.git] / tests / tests / push-source-with-changes
index f15ef30038597b272f496e255cf2799481f4e952..aed1b63cbb715d8e32ec09e7a529411419a6cff5 100755 (executable)
@@ -13,7 +13,7 @@ t-ref-head
 
 # (1) try pushing a changes file containing binaries
 
-t-dgit --dpkg-buildpackage:-d build -F
+t-dgit build -F
 
 t-expect-push-fail 'user-specified changes file is not source-only' \
 t-dgit -C ../${p}_1.0_multi.changes push-source --new
@@ -21,9 +21,16 @@ t-dgit -C ../${p}_1.0_multi.changes push-source --new
 # (2) try pushing a source-only changes file
 
 t-expect-fail F:'tree contains uncommitted files' \
-t-dgit --dpkg-buildpackage:-d build-source
+t-dgit build-source
 
-t-dgit -wddn --dpkg-buildpackage:-d 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