summaryrefslogtreecommitdiff
path: root/tests/missing-ref.script
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 14:45:00 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 14:49:24 +0000
commit2f9eedd5ce3474a3e07e1a2b5441afad8a55b4dc (patch)
tree00030a6d116fadfdde7b1e909d78f5ba043262fe /tests/missing-ref.script
parent8029b45dfc9ba8970e57ec0b16d48e2ec1a0bd1a (diff)
downloadmorph-2f9eedd5ce3474a3e07e1a2b5441afad8a55b4dc.tar.gz
Empty and initialize the test data dir anew for each test
This avoids accidentally having tests that depend on each other. It would be bad to have tests/bar.script do something and then tests/foo.script only work because of that something: if tests/bar.script later changes, then the later test starts breaking. Keeping tests independent is good practice. We don't seem to have had such dependencies yet, so this is a pre-emptive defensive move. Also, this means we can use simpler names in $DATADIR, instead of embedding the test name in everything. This further simplifies the act of creating new tests.
Diffstat (limited to 'tests/missing-ref.script')
-rwxr-xr-xtests/missing-ref.script6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/missing-ref.script b/tests/missing-ref.script
index f37caccc..1f57dca7 100755
--- a/tests/missing-ref.script
+++ b/tests/missing-ref.script
@@ -18,11 +18,11 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#tempdirs make script diffing cry
-cache="$DATADIR/build-chunk-cache"
+cache="$DATADIR/cache"
./morph --no-default-configs build chunk-repo non-existent-branch hello.morph \
--git-base-url="file://$DATADIR" \
--cachedir="$cache" --keep-path --no-distcc \
- 2> "$DATADIR/build-chunk-cache.stderr"
+ 2> "$DATADIR/stderr"
err=$?
-cat "$DATADIR/build-chunk-cache.stderr" | sed "s%$DATADIR%%" 1>&2
+cat "$DATADIR/stderr" | sed "s%$DATADIR%%" 1>&2
exit $err