summaryrefslogtreecommitdiff
path: root/tests/iscache-not-cache.script
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-03-10 22:11:16 +0000
committerLars Wirzenius <liw@liw.fi>2013-03-10 22:11:16 +0000
commitd2361d2a1cf01a7757ff847ac08f2b50e1c5b21a (patch)
tree57bbcb8aa858dbb37b2c00e3d9149cfb3acda34d /tests/iscache-not-cache.script
parent52a19315418b6b94289ff1ef4cc2d2d6b6135855 (diff)
downloadcachedir-d2361d2a1cf01a7757ff847ac08f2b50e1c5b21a.tar.gz
Fix test case
cmdtest has been fixed, so the test case used to pass by mistake.
Diffstat (limited to 'tests/iscache-not-cache.script')
-rwxr-xr-xtests/iscache-not-cache.script10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/iscache-not-cache.script b/tests/iscache-not-cache.script
index acfc935..aacd621 100755
--- a/tests/iscache-not-cache.script
+++ b/tests/iscache-not-cache.script
@@ -14,7 +14,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set -eu
+set -u
-! "$SRCDIR/cachedir" iscache "$DATADIR"
+"$SRCDIR/cachedir" iscache "$DATADIR" > "$DATADIR/stdout" 2> "$DATADIR/stderr"
+exit=$?
+set -e
+
+sed "s:$DATADIR:TMP:g" "$DATADIR/stdout"
+sed "s:$DATADIR:TMP:g" "$DATADIR/stderr" 1>&2
+exit $exit