X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-build-modes;h=ee2975d04c10a74cd53159aec53a0938e02548e0;hp=30fbb5a9a4f792e660493489ba2ca3f7f057abf6;hb=63911b5d576e7250c132d117c53e66aaf34b7f47;hpb=50419637c2d62d5368a52b6ddb3011f6a75b3b0d;ds=sidebyside diff --git a/tests/lib-build-modes b/tests/lib-build-modes index 30fbb5a9..ee2975d0 100644 --- a/tests/lib-build-modes +++ b/tests/lib-build-modes @@ -86,7 +86,7 @@ bm-quirk-sbuild-after-act () { # run. We know it must be running it in the chroot because we # provide sbuild with the dsc, not the tree, so we simply # ignore all executions of the clean target by schroot. - local arch=$(dpkg-architecture -qDEB_BUILD_ARCH) + local arch; arch=$(dpkg-architecture -qDEB_BUILD_ARCH) local sblog=../example_${v}_$arch.build if [ -e $sblog ]; then sed ' @@ -199,7 +199,7 @@ bm-run-one () { bm-report-test "SOURCE FILE" [ -e $dsc ] if [ $actual_status = success ]; then - local changes=$(echo ../example_${v}_*.changes) + local changes; changes=$(echo ../example_${v}_*.changes) case "$changes" in *' '*) fail "build generated ambiguous .changes: $changes" ;; esac