summaryrefslogtreecommitdiff
path: root/yarns/9000-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-08 20:50:02 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-08 21:04:24 +0100
commitdeebee352a92b6959fd41c914bb3eedea22ea740 (patch)
treed85fdd7f552557bed79e391497e3ece933231479 /yarns/9000-implements.yarn
parent2c440924e3ef26b27eef82ab8ce0c0a492ca3069 (diff)
downloadobnam-deebee352a92b6959fd41c914bb3eedea22ea740.tar.gz
Bugfix: excluded files stayed in new generation
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r--yarns/9000-implements.yarn8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn
index 300112bb..4fb0fc00 100644
--- a/yarns/9000-implements.yarn
+++ b/yarns/9000-implements.yarn
@@ -533,6 +533,14 @@ original one in live data.
new=$(stat -c %b "$DATADIR/$MATCH_3/$DATADIR/$MATCH_2/$MATCH_1")
test "$old" -lt "$new"
+Check that a restored directory is empty.
+
+ IMPLEMENTS THEN (\S+), restored to (\S+), is empty
+ if find "$DATADIR/$MATCH_2/$DATADIR/$MATCH_1" -mindepth 1 | grep .
+ then
+ die "$DATADIR/$MATCH_2/$DATADIR/$MATCH_1 isn't empty"
+ fi
+
Checks on contents of files
---------------------------