chiark / gitweb /
git-debrebase: capture breakwater tip
[dgit.git] / tests / lib-build-modes
index 30fbb5a9a4f792e660493489ba2ca3f7f057abf6..ee2975d04c10a74cd53159aec53a0938e02548e0 100644 (file)
@@ -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.
        # 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 '
        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
        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
                case "$changes" in
                *' '*)  fail "build generated ambiguous .changes: $changes" ;;
                esac