diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-08 20:50:02 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-08 21:04:24 +0100 |
commit | deebee352a92b6959fd41c914bb3eedea22ea740 (patch) | |
tree | d85fdd7f552557bed79e391497e3ece933231479 /yarns/9000-implements.yarn | |
parent | 2c440924e3ef26b27eef82ab8ce0c0a492ca3069 (diff) | |
download | obnam-deebee352a92b6959fd41c914bb3eedea22ea740.tar.gz |
Bugfix: excluded files stayed in new generation
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r-- | yarns/9000-implements.yarn | 8 |
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 --------------------------- |