diff options
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 --------------------------- |