chiark / gitweb /
Tests: Use --rm-old-changes in build-mode tests
[dgit.git] / tests / lib-build-modes
index 879bc016d9fe286e0b4ac60aadc85995cbd8694d..f5e341420e7c1f9f0817f3bb94b7c151719fa97f 100644 (file)
@@ -109,12 +109,13 @@ bm-run-one () {
        bm-compute-expected
 
        git checkout $branch
+       git clean -xdf # since we might not do any actual cleaning
 
        dsc='../example_1.0.dsc'
        rm -f $dsc
 
        set +o pipefail
-       t-dgit --git=$tmp/stunt-git $args 2>&1 | tee $bmlog
+       t-dgit --rm-old-changes --git=$tmp/stunt-git $args 2>&1 | tee $bmlog
        local ps="${PIPESTATUS[*]}"
        set -o pipefail