summaryrefslogtreecommitdiff
path: root/tests/missing-ref.script
diff options
context:
space:
mode:
Diffstat (limited to 'tests/missing-ref.script')
-rwxr-xr-xtests/missing-ref.script11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/missing-ref.script b/tests/missing-ref.script
index 0c4f29f7..f70715f1 100755
--- a/tests/missing-ref.script
+++ b/tests/missing-ref.script
@@ -2,7 +2,7 @@
#
# Test building with a bad reference.
#
-# Copyright (C) 2011 Codethink Limited
+# Copyright (C) 2011,2012 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -17,10 +17,11 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-set -e
-
+#tempdirs make script diffing cry
cache="$DATADIR/build-chunk-cache"
./morph --no-default-configs build chunk-repo non-existent-branch hello.morph \
--git-base-url="file://$DATADIR" \
- --cachedir="$cache" --keep-path --no-distcc
-
+ --cachedir="$cache" --keep-path --no-distcc 2> "$DATADIR/build-chunk-cache.stderr"
+err=$?
+cat "$DATADIR/build-chunk-cache.stderr" | sed "s%$DATADIR%%" 1>&2
+exit $?