summaryrefslogtreecommitdiff
path: root/yarns/0060-encryption.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-17 20:34:50 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-17 20:34:50 +0000
commitc5f5ea70d4fd2190f9ae08b0455f8a871f814bd4 (patch)
tree8988a7a32c7514f0561e37a756191907cc6062cc /yarns/0060-encryption.yarn
parent3da87141807810cf235a1b074b38572427d41b50 (diff)
downloadobnam-c5f5ea70d4fd2190f9ae08b0455f8a871f814bd4.tar.gz
Fix parsing of filtered files
This bug was originally triggered by the test suite, because the error message in the code had a typo. While looking for that I noticed that the code that was parsing the code seemed fishy. This is now cleaner. First of all, I split the error messages for "unknown tag" and "no tag". Then I rewrote the loop that parses so it is robust against error situations. Then I tweaked the yarn test so it now works.
Diffstat (limited to 'yarns/0060-encryption.yarn')
-rw-r--r--yarns/0060-encryption.yarn2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarns/0060-encryption.yarn b/yarns/0060-encryption.yarn
index dbdc4c1d..384d7a70 100644
--- a/yarns/0060-encryption.yarn
+++ b/yarns/0060-encryption.yarn
@@ -99,7 +99,7 @@ client, should not be able to access the data.
GIVEN a user U3 calling themselves U1
WHEN user U3 attempts to restore their latest generation in repository R into X3
THEN the attempt failed with exit code 1
- AND the error message matches "Unknown filter tag encountered\|need more than 1 value to unpack"
+ AND the error message matches "R169C6X: Unknown filter tag\|R173AEX: No filter tag found"
(The error message above indicates that there's a bug in Obnam, which
is that the error message, when an encryption is not provided but the