summaryrefslogtreecommitdiff
path: root/tests/rebuild-cached-stratum.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/rebuild-cached-stratum.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/rebuild-cached-stratum.script')
-rwxr-xr-xtests/rebuild-cached-stratum.script6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rebuild-cached-stratum.script b/tests/rebuild-cached-stratum.script
index 2802dd54..4d6193e8 100755
--- a/tests/rebuild-cached-stratum.script
+++ b/tests/rebuild-cached-stratum.script
@@ -5,7 +5,7 @@
# not get rebuilt in that case. Later on, the test will guard against
# regressions.
#
-# 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
@@ -22,8 +22,8 @@
set -e
-cache="$DATADIR/rebuild-cached-stratum-cache"
-log="$DATADIR/rebuild-cached-stratum-morph.log"
+cache="$DATADIR/cache"
+log="$DATADIR/morph.log"
# Make a branch in the chunk repo where we can make our own modifications.
(cd "$DATADIR/chunk-repo" &&