simplify example in helptext. add testdata.

This commit is contained in:
Alexander 'Leo' Bergolth 2016-12-21 14:34:44 +01:00
parent 876b670d60
commit fbee04ce23
2 changed files with 3 additions and 2 deletions

View File

@ -1013,8 +1013,6 @@ class Archiver:
# susan is a nice person
# include susans home
+ /home/susan
# ... and its contents
+ /home/susan/*
# don't backup the other home directories
- /home/*

View File

@ -508,6 +508,9 @@ def test_load_invalid_patterns_from_file(tmpdir, lines):
(["+fm:*/something00.txt",
"-/data"],
["/data/something00.txt", '/home', '/home/leo', '/home/leo/t', '/home/other']),
(["+/home/leo",
"-/home/*"],
['/data', '/data/something00.txt', '/data/subdir/something01.txt', '/home', '/home/leo', '/home/leo/t']),
(["+fm:/home/leo",
"-/home/"],
['/data', '/data/something00.txt', '/data/subdir/something01.txt', '/home', '/home/leo', '/home/leo/t']),