X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fpush-source-with-changes;h=aed1b63cbb715d8e32ec09e7a529411419a6cff5;hb=5a5d1e5e19d5782ac517a31fb3751c43289ed84c;hp=f15ef30038597b272f496e255cf2799481f4e952;hpb=b58684708ff13f563669835c5a9b429acbdda0ac;p=dgit.git diff --git a/tests/tests/push-source-with-changes b/tests/tests/push-source-with-changes index f15ef300..aed1b63c 100755 --- a/tests/tests/push-source-with-changes +++ b/tests/tests/push-source-with-changes @@ -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