summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-18 14:00:30 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-18 14:00:30 +0100
commit95a33607a440251cd3aaec4a9fc0dc317191a699 (patch)
tree031badf276ada46a4bfd681821eedfca2c318be2 /yarns
parent58e2106d0d001d24e44012f8ce370b53fc972d27 (diff)
downloaddistix-95a33607a440251cd3aaec4a9fc0dc317191a699.tar.gz
Implement _set subcommand
Diffstat (limited to 'yarns')
-rw-r--r--yarns/020-metadata-manipulation.yarn8
-rw-r--r--yarns/900-implements.yarn1
2 files changed, 9 insertions, 0 deletions
diff --git a/yarns/020-metadata-manipulation.yarn b/yarns/020-metadata-manipulation.yarn
index 53c5980..34d89d7 100644
--- a/yarns/020-metadata-manipulation.yarn
+++ b/yarns/020-metadata-manipulation.yarn
@@ -34,3 +34,11 @@ A file with a single key/value pair.
WHEN user attempts to run distix _get METADATA key
THEN attempt succeeded
AND output is "key=value\n"
+
+Set a key/value pair.
+
+ WHEN user attempts to run distix _set METADATA key2=value2
+ THEN attempt succeeded
+ WHEN user attempts to run distix _list METADATA
+ THEN attempt succeeded
+ AND output is "key=value\nkey2=value2\n"
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 21a9fc9..14ad7ff 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -35,6 +35,7 @@ distix.
IMPLEMENTS THEN attempt succeeded
cat "$DATADIR/attempt.exit"
+ cat "$DATADIR/attempt.stderr"
if ! grep -Fx 0 "$DATADIR/attempt.exit"
then
echo "Attempt should have succeeded, but didn't" 1>&2