summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 15:42:27 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 15:42:27 +0000
commit25dc9fb774ca365e3fce939871ebcae53639e9a1 (patch)
tree3fbb7fd289efd641d27afcb91bca0b8b755440d1 /tests
parentfb6116243063b9fd8aca31b0daa1676bb9158cc1 (diff)
downloadmorph-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-xtests/build-chunk-distributed-local.script2
-rwxr-xr-xtests/build-chunk.script2
-rwxr-xr-xtests/build-stratum-distributed-local.script2
-rwxr-xr-xtests/build-stratum.script2
-rwxr-xr-xtests/morph2
-rwxr-xr-xtests/name-clash.script2
-rwxr-xr-xtests/rebuild-cached-stratum.script2
-rwxr-xr-xtests/setup2
-rwxr-xr-xtests/show-dependencies.script2
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