From 9bf3e628691610c9700c158ff11bf2c7276cb2ea Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 5 Dec 2013 17:56:09 +0000 Subject: Refactor: remove implicit live data directory It is just as, if not more, clear, and not much more tedious, to be explicit about this. --- yarns/0030-basics.yarn | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'yarns/0030-basics.yarn') diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index 17a21288..5c86b227 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -18,11 +18,11 @@ Just a few files with a bit of data in each. This is what every backup program must be able to handle. SCENARIO backup simple data - GIVEN 100kB of live data - AND a manifest of live data in M - WHEN user backs up live data + GIVEN 100kB of new data in directory L + AND a manifest of directory L in M + WHEN user backs up directory L AND user restores their latest generation into X - THEN live data, restored to X, matches manifest M + THEN L, restored to X, matches manifest M AND user can fsck the repository Backup sparse files @@ -45,12 +45,12 @@ sparse. We'll settle for making sure the restored file does not use more disk space than the one in live data. SCENARIO backup a sparse file - GIVEN a file S in live data, with a hole, data, a hole - AND a manifest of live data in M - WHEN user backs up live data + GIVEN a file S in L, with a hole, data, a hole + AND a manifest of directory L in M + WHEN user backs up directory L AND user restores their latest generation into X - THEN live data, restored to X, matches manifest M - AND restored file S in X doesn't use more disk + THEN L, restored to X, matches manifest M + AND file S from L, restored in X doesn't use more disk Backup all interesting file and metadata types ---------------------------------------------- @@ -80,8 +80,8 @@ other parts of Obnam's test suite as well, and this reduces code duplication. SCENARIO backup non-basic filesystem objects - GIVEN live data with interesting filesystem objects - AND a manifest of live data in M - WHEN user backs up live data + GIVEN directory L with interesting filesystem objects + AND a manifest of directory L in M + WHEN user backs up directory L AND user restores their latest generation into X - THEN live data, restored to X, matches manifest M + THEN L, restored to X, matches manifest M -- cgit v1.2.1