summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-18 15:54:54 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-18 15:54:54 +0100
commitbb3e408bbc5b0832d262753431f2125cdfd8b557 (patch)
tree2b9815df7464c107232288f3be899c100a2d7e85 /yarns
parentf0b9f87a0a0552b8bd39f9b60bd936a3c2a88c4a (diff)
downloaddistix-bb3e408bbc5b0832d262753431f2125cdfd8b557.tar.gz
Fix test suite to handle new MetadataLoader
The id of the StructuredError changes, when I moved it, so the test suite needs to grep for a new error code.
Diffstat (limited to 'yarns')
-rw-r--r--yarns/020-metadata-manipulation.yarn2
-rw-r--r--yarns/900-implements.yarn4
2 files changed, 4 insertions, 2 deletions
diff --git a/yarns/020-metadata-manipulation.yarn b/yarns/020-metadata-manipulation.yarn
index 033277a..535caef 100644
--- a/yarns/020-metadata-manipulation.yarn
+++ b/yarns/020-metadata-manipulation.yarn
@@ -14,7 +14,7 @@ metadata file doesn't exist.
WHEN user attempts to run distix _list METADATA
THEN attempt failed
- AND error message matches R465BCX
+ AND error message matches R56497X
An empty file should result in empty output.
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 8de6d7a..c483214 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -26,7 +26,9 @@ be, and changing there when running various commands.
cd "$DATADIR"
rm -f attempt.exit attempt.stdout attempt.stderr
cd "$(cat cwd || echo .)"
- if "$SRCDIR/distix" --no-default-config $MATCH_1 \
+ if "$SRCDIR/distix" --no-default-config \
+ --log "$DATADIR/distix.log" \
+ $MATCH_1 \
> "$DATADIR/attempt.stdout" 2> "$DATADIR/attempt.stderr"
then
echo 0 > "$DATADIR/attempt.exit"