summaryrefslogtreecommitdiff
path: root/yarns/0040-generations.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-26 14:51:57 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-26 14:51:57 +0000
commit57d016517b38043962dfd4a428869565163c1fa2 (patch)
tree09607142d3942bf248589bc34405ffb6c7023a2d /yarns/0040-generations.yarn
parentf5502b638093291eb9cf39c1506f77ef391ff270 (diff)
downloadobnam-57d016517b38043962dfd4a428869565163c1fa2.tar.gz
Fix file restore, add xattr value change test
The single file restore test had a bug, in that it was depending on various test steps to execute fast enough that the wall clock did not advance to the next second. This has been fixed by allowing manifests to be done on single files instead of just directories. Add a test for an extended attribute value changing, and that being the only change in the live data. The backup needs to notice that it has changed. This was intended to be the original change in this commit, but I ran into the test bug above, so I had to fix that too. I was too lazy to detangle the two sets of changes for commits.
Diffstat (limited to 'yarns/0040-generations.yarn')
-rw-r--r--yarns/0040-generations.yarn10
1 files changed, 5 insertions, 5 deletions
diff --git a/yarns/0040-generations.yarn b/yarns/0040-generations.yarn
index 9c741b4d..7da4f1fb 100644
--- a/yarns/0040-generations.yarn
+++ b/yarns/0040-generations.yarn
@@ -23,10 +23,10 @@ problem.)
SCENARIO backup two generations
GIVEN 1MB of new data in directory L
- AND a manifest of directory L in G1
+ AND a manifest of L in G1
WHEN user U backs up directory L to repository R
GIVEN 2MB of new data in directory L
- AND a manifest of directory L in G2
+ AND a manifest of L in G2
WHEN user U backs up directory L to repository R
AND user U restores generation 1 to R1 from repository R
AND user U restores generation 2 to R2 from repository R
@@ -110,10 +110,10 @@ checking that the remaining one is the one we want.
SCENARIO remove specific generations
GIVEN 1kB of new data in directory L
- AND a manifest of directory L in M1
+ AND a manifest of L in M1
WHEN user U backs up directory L to repository R
GIVEN 1kB of new data in directory L
- AND a manifest of directory L in M2
+ AND a manifest of L in M2
WHEN user U backs up directory L to repository R
AND user U forgets the oldest generation in repository R
THEN user U sees 1 generation in repository R
@@ -132,7 +132,7 @@ The normal way of forgetting generations is with the `obnam forget
GIVEN 1kB of new data in directory L
WHEN user U backs up directory L to repository R
GIVEN 1kB of new data in directory L
- AND a manifest of directory L in M
+ AND a manifest of L in M
WHEN user U backs up directory L to repository R
AND user U forgets according to schedule 1y in repository R
THEN user U sees 1 generation in repository R