diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-22 15:42:27 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-22 15:42:27 +0000 |
commit | 25dc9fb774ca365e3fce939871ebcae53639e9a1 (patch) | |
tree | 3fbb7fd289efd641d27afcb91bca0b8b755440d1 /tests | |
parent | fb6116243063b9fd8aca31b0daa1676bb9158cc1 (diff) | |
download | morph-25dc9fb774ca365e3fce939871ebcae53639e9a1.tar.gz |
use "set -eu" in scripts
Except in the missing-ref script, since that one breaks with -e.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/build-chunk-distributed-local.script | 2 | ||||
-rwxr-xr-x | tests/build-chunk.script | 2 | ||||
-rwxr-xr-x | tests/build-stratum-distributed-local.script | 2 | ||||
-rwxr-xr-x | tests/build-stratum.script | 2 | ||||
-rwxr-xr-x | tests/morph | 2 | ||||
-rwxr-xr-x | tests/name-clash.script | 2 | ||||
-rwxr-xr-x | tests/rebuild-cached-stratum.script | 2 | ||||
-rwxr-xr-x | tests/setup | 2 | ||||
-rwxr-xr-x | tests/show-dependencies.script | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/tests/build-chunk-distributed-local.script b/tests/build-chunk-distributed-local.script index db476ec3..e758492c 100755 --- a/tests/build-chunk-distributed-local.script +++ b/tests/build-chunk-distributed-local.script @@ -17,7 +17,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu tests/morph build-distributed chunk-repo farrokh hello.morph diff --git a/tests/build-chunk.script b/tests/build-chunk.script index 89f036ba..e8fcd3a1 100755 --- a/tests/build-chunk.script +++ b/tests/build-chunk.script @@ -17,7 +17,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu tests/morph build chunk-repo farrokh hello.morph diff --git a/tests/build-stratum-distributed-local.script b/tests/build-stratum-distributed-local.script index 2e19fdb5..673b6b1c 100755 --- a/tests/build-stratum-distributed-local.script +++ b/tests/build-stratum-distributed-local.script @@ -17,7 +17,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu tests/morph build-distributed morphs-repo master hello-stratum.morph tar -tf "$DATADIR/cache/"*.stratum.* | LC_ALL=C sort | sed '/^\.\/./s:^\./::' diff --git a/tests/build-stratum.script b/tests/build-stratum.script index 49b0c9a7..442fad59 100755 --- a/tests/build-stratum.script +++ b/tests/build-stratum.script @@ -17,7 +17,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu tests/morph build morphs-repo master hello-stratum.morph tar -tf "$DATADIR/cache/"*.stratum.* | LC_ALL=C sort | sed '/^\.\/./s:^\./::' diff --git a/tests/morph b/tests/morph index 8d78379f..3554a2c8 100755 --- a/tests/morph +++ b/tests/morph @@ -17,7 +17,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu PATH="$(pwd):$PATH" ./morph --no-default-config --config="$DATADIR/morph.conf" "$@" || \ diff --git a/tests/name-clash.script b/tests/name-clash.script index e47ea425..a0895ccd 100755 --- a/tests/name-clash.script +++ b/tests/name-clash.script @@ -20,7 +20,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu ( cd "$DATADIR/chunk-repo" git checkout --quiet farrokh diff --git a/tests/rebuild-cached-stratum.script b/tests/rebuild-cached-stratum.script index cc513a5e..4a8f46f4 100755 --- a/tests/rebuild-cached-stratum.script +++ b/tests/rebuild-cached-stratum.script @@ -20,7 +20,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu cache="$DATADIR/cache" diff --git a/tests/setup b/tests/setup index f20f6892..004c0ceb 100755 --- a/tests/setup +++ b/tests/setup @@ -26,7 +26,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu # The $DATADIR should be empty at the beginnig of each test. find "$DATADIR" -mindepth 1 -delete diff --git a/tests/show-dependencies.script b/tests/show-dependencies.script index d283efab..78fb186b 100755 --- a/tests/show-dependencies.script +++ b/tests/show-dependencies.script @@ -18,7 +18,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -set -e +set -eu tests/morph show-dependencies test-repo master xfce-core.morph |