diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-06 19:49:23 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-06 19:49:23 +0000 |
commit | a5ab9e488522b8fb74a6eadc4a7acf9199e782c4 (patch) | |
tree | ef0fc5429cc771663f1066d30707b9943308c42d /tests/lib-build-modes | |
parent | 20d3465b51a39337e1117868f80fbc074d3f6b85 (diff) |
Shell bug: avoid local=$(....) as it defeats set -e
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib-build-modes')
-rw-r--r-- | tests/lib-build-modes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib-build-modes b/tests/lib-build-modes index 30fbb5a..ee2975d 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 |