diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-26 14:51:57 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-26 14:51:57 +0000 |
commit | 57d016517b38043962dfd4a428869565163c1fa2 (patch) | |
tree | 09607142d3942bf248589bc34405ffb6c7023a2d /yarns/0050-multiple-clients.yarn | |
parent | f5502b638093291eb9cf39c1506f77ef391ff270 (diff) | |
download | obnam-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/0050-multiple-clients.yarn')
-rw-r--r-- | yarns/0050-multiple-clients.yarn | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yarns/0050-multiple-clients.yarn b/yarns/0050-multiple-clients.yarn index f80ba88a..0cacd464 100644 --- a/yarns/0050-multiple-clients.yarn +++ b/yarns/0050-multiple-clients.yarn @@ -14,8 +14,8 @@ suite we do not test concurrency at all. SCENARIO two clients sharing a repository GIVEN directory L1 with interesting filesystem objects AND directory L2 with interesting filesystem objects - AND a manifest of directory L1 in M1 - AND a manifest of directory L2 in M2 + AND a manifest of L1 in M1 + AND a manifest of L2 in M2 WHEN user U1 backs up directory L1 to repository R WHEN user U2 backs up directory L2 to repository R AND user U1 restores their latest generation in repository R into X1 @@ -28,8 +28,8 @@ a change to both sets of live data, and GIVEN 1kB of new data in directory L1 AND 2kB of new data in directory L2 - AND a manifest of directory L1 in M1A - AND a manifest of directory L2 in M2A + AND a manifest of L1 in M1A + AND a manifest of L2 in M2A WHEN user U1 backs up directory L1 to repository R AND user U2 backs up directory L2 to repository R AND user U1 forgets the oldest generation in repository R |